/* ==================== FORNECEDORES FORM SECTION - MODERN ==================== */

.form-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1a35 0%, #1a2d5c 50%, #243b6e 100%);
    padding: 120px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.form-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: formOrbFloat 20s ease-in-out infinite;
}

.form-gradient-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,140,0,0.25) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.form-gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91,127,184,0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes formOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.form-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

.form-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,140,0,0.5);
    border-radius: 50%;
    animation: formParticle 15s ease-in-out infinite;
}

.form-particles span:nth-child(1) { left: 10%; top: 30%; animation-delay: 0s; }
.form-particles span:nth-child(2) { left: 25%; top: 70%; animation-delay: -3s; }
.form-particles span:nth-child(3) { left: 70%; top: 20%; animation-delay: -6s; }
.form-particles span:nth-child(4) { left: 85%; top: 60%; animation-delay: -9s; }
.form-particles span:nth-child(5) { left: 50%; top: 85%; animation-delay: -12s; }

@keyframes formParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 1; }
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==================== FORM HERO - MODERN ==================== */

.form-hero-modern {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.form-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,140,0,0.1);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.form-badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: formPulse 2s ease-in-out infinite;
}

@keyframes formPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.form-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.form-title-modern .title-line {
    display: block;
    color: var(--color-white);
}

.form-title-modern .title-brand {
    margin: 0.25rem 0;
}

.form-title-modern .brand-next {
    color: var(--color-white);
}

.form-title-modern .brand-mini {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle-modern {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.form-benefits-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.benefit-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.benefit-chip svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FORM CARD ==================== */

/* Form Card */
.form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: cardSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    animation: formGroupFadeIn 0.6s ease-out both;
}

@keyframes formGroupFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group[data-animation-delay="0"] { animation-delay: 0.3s; }
.form-group[data-animation-delay="1"] { animation-delay: 0.35s; }
.form-group[data-animation-delay="2"] { animation-delay: 0.4s; }
.form-group[data-animation-delay="3"] { animation-delay: 0.45s; }
.form-group[data-animation-delay="4"] { animation-delay: 0.5s; }
.form-group[data-animation-delay="5"] { animation-delay: 0.55s; }
.form-group[data-animation-delay="6"] { animation-delay: 0.6s; }
.form-group[data-animation-delay="7"] { animation-delay: 0.65s; }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1f4d;
    margin-bottom: 0.5rem;
}

.required {
    color: #ff8c00;
    font-weight: 700;
}

/* Inputs - FIXED for visibility */
.form-input,
.form-select,
.form-textarea,
input.form-input,
select.form-select,
textarea.form-textarea,
#fornecedorForm input,
#fornecedorForm select,
#fornecedorForm textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #0a1f4d !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    outline: none;
    -webkit-text-fill-color: #0a1f4d !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(10, 31, 77, 0.4) !important;
    font-weight: 400;
    opacity: 1 !important;
}

/* Force autofill colors */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-text-fill-color: #0a1f4d !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0a1f4d;
    pointer-events: none;
    font-size: 0.75rem;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Outfit', sans-serif;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: rgba(10, 31, 77, 0.6);
    margin-top: 0.5rem;
}

/* Submit Button */
.form-actions {
    margin-top: 2rem;
    animation: formGroupFadeIn 0.6s ease-out both;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(10, 31, 77, 0.6);
    margin-top: 1rem;
}

.form-disclaimer a {
    color: #ff8c00;
    text-decoration: none;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background: #ffffff;
    border-radius: 24px;
    animation: cardSlideUp 0.6s ease-out;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.success-message h3 {
    font-size: 1.75rem;
    color: #0a1f4d;
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 1.125rem;
    color: rgba(10, 31, 77, 0.7);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formGroupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 100px 1rem 3rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-title {
        font-size: 2rem;
    }

    .form-gradient-orb,
    .form-particles span {
        display: none;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 90px 0.75rem 2.5rem;
    }

    .form-container {
        padding: 0;
    }

    .form-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.9rem;
        padding: 0.75rem 0.75rem;
    }

    .form-actions {
        margin-top: 1.25rem;
    }

    .btn-submit {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
        min-height: 48px;
    }

    .form-hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .highlight-word {
        font-size: inherit;
    }
}

@media (max-width: 375px) {
    .form-section {
        padding: 85px 0.6rem 2rem;
    }

    .form-card {
        padding: 1.25rem 0.85rem;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.85rem;
        padding: 0.7rem 0.65rem;
    }

    .btn-submit {
        font-size: 0.9rem;
        padding: 0.8rem 0.9rem;
    }
}

@media (max-width: 320px) {
    .form-title {
        font-size: 1.25rem;
    }

    .form-card {
        padding: 1rem 0.75rem;
    }
}
