/* Brief Page Specific Styles - Light Theme */

:root {
    --primary-color: #000000;
    /* Matching site black aesthetics */
    --accent-color: #00FF88;
    /* Matching site flash color */
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-color: #000000;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --success-color: #10b981;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

/* Navbar - Default (Black) from styles.css is used */

/* Header - White to match clean aesthetic */
.brief-header {
    background: #FFFFFF;
    padding: 150px 0 60px;
    /* Account for fixed navbar (90px) */
    text-align: center;
    position: relative;
}

.brief-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

.brief-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 800;
    letter-spacing: -1px;
}

.brief-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Form Container */
.brief-section {
    padding-bottom: 80px;
    margin-top: -40px;
    /* Overlap with header gradient */
    position: relative;
    z-index: 10;
}

.brief-form {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Multi-step Logic CSS */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Indicator */
.form-progress {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    padding: 0 10px;
}

.progress-bar {
    height: 4px;
    background: #f1f1f1;
    border-radius: 10px;
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 25%;
    /* Initial width for Step 1 */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.steps-info {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
}

.marker-dot {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 3px solid #f1f1f1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-marker.active {
    color: #000;
}

.step-marker.active .marker-dot {
    border-color: var(--accent-color);
    background: #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.step-marker.completed .marker-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.step-marker.completed .marker-dot::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Step Actions & Buttons */
.step-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

.btn-next,
.btn-prev {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-next {
    background: #000;
    color: #fff;
    flex: 1;
    max-width: 200px;
}

.btn-next:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
}

.btn-prev {
    background: #fff;
    color: #666;
    border-color: #e2e8f0;
    flex: 1;
    max-width: 200px;
}

.btn-prev:hover {
    background: #f8fafc;
    color: #000;
    border-color: #000;
}

/* Form Sections */
.form-section {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very subtle border */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
}

.step-number {
    background: #000000;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-title h2 {
    font-size: 1.75rem;
    margin: 0;
    color: #000000;
    font-weight: 700;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-group.full-width {
    width: 100%;
    margin-top: 32px;
}

/* Form Controls */
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.group-label {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
    color: #000000;
}

.helper-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    margin-top: -6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #000000 !important;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

input::placeholder,
textarea::placeholder {
    color: #a0a0a0;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-card:hover {
    border-color: #000000;
    background: #f8f8f8;
}

.checkbox-card input {
    display: none;
}

/* Custom Checkmark */
.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 14px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
    background: white;
}

.checkbox-card input:checked~.checkmark {
    background-color: #000000;
    border-color: #000000;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--accent-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-card input:checked~.checkmark::after {
    display: block;
}

.checkbox-card input:checked~.label-text {
    color: #000000;
    font-weight: 600;
}

.label-text {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
}

/* Submit Button Area */
.form-actions {
    text-align: center;
    margin-top: 60px;
}

/* Specific button override for light background */
.form-actions .btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    padding: 16px 48px;
    font-size: 1.2rem;
    border-radius: 50px;
    height: auto;
    flex: 1;
    max-width: 250px;
}

.form-actions .btn-primary:hover {
    background-color: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.privacy-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Popups (Light Theme) */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.custom-popup.show {
    display: flex;
}

.popup-content {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none;
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
}

.popup-close-btn:hover {
    color: #000000;
}

.popup-title {
    color: #000000;
    font-weight: 800;
}

.popup-message {
    color: #4b5563;
}

.popup-icon-container.success {
    background: #edfcf5;
}

.popup-icon-container.error {
    background: #fef2f2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .brief-header {
        padding: 100px 20px 60px;
    }

    .brief-header h1 {
        font-size: 2.25rem;
    }

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

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

    .steps-info {
        padding: 0 20px;
    }

    .marker-label {
        display: none;
    }

    .progress-bar {
        left: 30px;
        right: 30px;
    }

    .step-actions {
        flex-direction: column-reverse;
        align-items: center;
    }

    .btn-next,
    .btn-prev,
    .form-actions .btn-primary {
        width: 100%;
        max-width: 100%;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-number {
        margin-right: 0;
    }
}

/* Footer Visibility Fix for Light Theme Page */
footer,
#contact,
.footer {
    color: #ffffff;
    background-color: #000000;
    /* Ensure footer bg is black */
}

.contact-item,
.contact-label,
.contact-value,
.footer-logo,
.footer-info p,
.footer-bottom p {
    color: #ffffff !important;
}

.contact-item svg {
    stroke: #ffffff !important;
    fill: none !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
}

.footer-links a,
.footer-social a,
.footer-legal a {
    color: #ffffff !important;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-color) !important;
}

/* Ensure WhatsApp button icon is white */
.whatsapp-float {
    color: #ffffff !important;
}