/* ==========================================================================
   DOWNLOAD FORM PAGE - PREMIUM SAAS LAYOUT
   ========================================================================== */

.report-form-page .container {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- Layout Wrapper --- */
.report-top-wrapper {
    background: var(--background);
    color: var(--text-primary);
    padding: clamp(120px, 12vw, 160px) 0 clamp(80px, 10vw, 100px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: center;
}

/* --- Left Side Content --- */
.report-content .section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 99px;
}

.report-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.report-description {
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 95%;
}

.report-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
    display: grid;
    gap: 16px;
}

.report-checklist li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.report-checklist li i {
    color: var(--primary);
    font-size: 1.1rem;
    background: var(--primary-soft);
    padding: 6px;
    border-radius: 50%;
}

/* Trust Badge */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.avatars {
    display: flex;
}

.avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--background);
    margin-left: -12px;
}
.avatars img:first-child {
    margin-left: 0;
}

.trust-badge p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    max-width: 280px;
}

/* --- Right Side Premium Form Card --- */
.report-form-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-md);
}

.card-header-text {
    margin-bottom: 32px;
}

.card-header-text h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-header-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Floating Labels & Inputs --- */
.input-group-floating {
    position: relative;
    margin-bottom: 24px;
}

.floating-input {
    width: 100%;
    padding: 24px 16px 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.floating-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Floating Action */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}
.floating-input:not(:focus):not(:placeholder-shown) ~ .floating-label {
    color: var(--text-muted);
}

/* Validation UI */
.validation-icon {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.icon-success {
    color: var(--success);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 6px;
    display: none;
}

.field-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Validation States (Toggled via JS) */
.input-group-floating.is-invalid .floating-input {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.input-group-floating.is-invalid .error-message {
    display: block;
}
.input-group-floating.is-invalid .field-hint {
    display: none;
}
.input-group-floating.is-valid .floating-input {
    border-color: var(--success);
}
.input-group-floating.is-valid .validation-icon {
    opacity: 1;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 32px 0 8px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-error {
    margin-bottom: 24px;
}

/* Submit Button */
.btn-submit-premium {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.btn-submit-premium:hover {
    background: var(--primary-hover);
}

.btn-submit-premium:active {
    transform: scale(0.98);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .report-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .report-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* --- Layout Wrapper --- */
.report-top-wrapper {
    background: var(--background);
    color: var(--text-primary);
    padding: clamp(120px, 12vw, 160px) 0 clamp(80px, 10vw, 100px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%; /* Add this to ensure the flex container spans the full width */
}

/* --- Right Side Premium Form Card --- */
.report-form-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 48px);
    box-shadow: var(--shadow-md);
    box-sizing: border-box; /* Add this to prevent padding from expanding the width */
}
}

@media (max-width: 480px) {
    .report-form-card {
        padding: 24px;
    }
    
    .report-content h1 {
        font-size: 2.2rem;
    }
}
