/* ===================================
   BRIEFING FORM STYLES
   =================================== */

/* Hero específico para briefing */
.briefing-hero {
    background: var(--bg-dark);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.briefing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0.9;
}

.briefing-hero .container {
    position: relative;
    z-index: 2;
}

.briefing-hero .hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 24px;
    color: white;
}

.briefing-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    color: white;
}

/* Form Section */
.briefing-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-intro {
    text-align: center;
    margin-bottom: 60px;
}

.form-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.form-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Formulario */
.briefing-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--bg-secondary);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-number {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

/* Form rows and groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 17, 242, 0.1);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--secondary-color);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

select {
    cursor: pointer;
}

/* Checkboxes y radios */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.checkbox-group label,
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
}

.checkbox-group label:hover,
.checkbox-grid label:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

/* Form submit */
.form-submit {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--bg-secondary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    justify-content: center;
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Loading state */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading .btn-icon {
    transform: rotate(360deg);
}

/* Success message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
    text-align: center;
}

/* Required field indicator */
label:after {
    content: '';
}

label:has(+ input[required]):after,
label:has(+ select[required]):after,
label:has(+ textarea[required]):after {
    content: ' *';
    color: #e74c3c;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .briefing-hero {
        padding: 80px 0 60px;
    }

    .briefing-hero .hero-title {
        font-size: 2.5rem;
    }

    .briefing-form-section {
        padding: 60px 0;
    }

    .form-intro {
        margin-bottom: 40px;
    }

    .form-intro h2 {
        font-size: 2rem;
    }

    .briefing-form {
        padding: 24px;
        margin: 0 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .form-section h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .briefing-hero .hero-title {
        font-size: 2rem;
    }

    .briefing-form {
        padding: 20px;
        margin: 0 8px;
    }

    .form-intro h2 {
        font-size: 1.5rem;
    }
}