/* -------------------------------------------------
   contact.css – ONE FILE ONLY (Updated to match assesment styles)
   Merged: assesment container (glass, orbs, animation), compact heights,
   clean palette (yellow-pink gradients for buttons), matching loading.
   Form & right sides auto-height, similar compact sizing.
   ------------------------------------------------- */

/* ---------- 1. ROOT VARIABLES (from assesment + contact) ---------- */
:root {
    --dark-bg: #050921;
    --navy: #07284a;
    --deep: #001F3F;
    --accent-yellow: #F9B233;
    --accent-pink: #E91E63;
    --accent-red: #FF3B3F;
    --text-light: #f5f5f5;
    --muted: #9aa7bd;

    /* contact-specific */
    --success: var(--accent-yellow);
    --error: #ff6b6b;
    --warning: #ffa726;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 60px rgba(2, 10, 30, 0.7);
    --shadow-medium: 0 4px 12px rgba(249, 178, 51, 0.3); /* from assesment hover */
}

/* ---------- 2. GLOBAL RESET & BODY (from assesment) ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    min-height: 100vh;
}
body {
    font-family: Poppins, Inter, system-ui;
    color: var(--text-light);
    display: flex;
    align-items: center; /* Centered vertically for contact */
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: 80px; /* for fixed-header */
    padding-bottom: 60px; /* for fixed-footer */
    background-image: 
        url("../images/request.svg"), 
        radial-gradient(circle at 20% 20%, #0a1d42, #092a6e 70%);
    background-size: auto !important;
    background-position: center 25% !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ---------- 3. SCROLLBAR (from assesment) ---------- */
::-webkit-scrollbar {
    width: 8px;
    background: #05122c;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffae00, rgb(235, 110, 8));
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffae00, var(--accent-yellow));
}

/* ---------- 4. FIXED HEADER / FOOTER / LOGO (from assesment) ---------- */
.logo img {
    filter: brightness(0) invert(1);
    height: 62px;
    width: auto;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    background: #05132E;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    animation: headerFadeIn 2s ease-out forwards;
}
@keyframes headerFadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}
.fixed-header.on-scroll {
    background: rgba(11, 18, 36, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-medium);
}
#page-header {
    padding: 1rem;
    text-align: center;
}
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: rgba(0, 20, 50, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ---------- 5. MAIN CONTAINER (assesment style: glass, orbs, auto-height) ---------- */
.container {
    margin-top: 2rem;
    width: 100%;
    max-width: 920px;
    padding: 2rem;
    border-radius: 20px;
	background: rgba(58, 131, 240, 0.144) !important;
	box-shadow: 0 20px 60px rgba(2, 10, 30, 0.7) !important;
    position: relative;
    overflow: hidden;
    height: auto;
    animation: headerFadeIn 2s ease-out forwards;
    display: flex; /* Added for left/right flex */
    gap: 2rem; /* Compact gap for similar heights */
    align-items: stretch; /* Stretch left/right to match heights */
}
.container.narrow {
    max-width: 60rem;
}
.container::before,
.container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}
.container::before {
    width: 350px;
    height: 350px;
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    animation: float 8s ease-in-out infinite alternate;
}
.container::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, var(--accent-yellow), transparent 70%);
    animation: float 10s ease-in-out infinite alternate-reverse;
}
@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(20px); }
}

/* ---------- 6. BACKGROUND PATTERN (contact overlay, but subtle under orbs) ---------- */
.bg-pattern {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(233,30,99,.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249,178,51,.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,59,63,.05) 0%, transparent 50%);
    z-index: -1;
}

/* ---------- 7. LEFT – FORM (compact, auto-height to match right) ---------- */
.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center form vertically within left */
}
.form-container {
    background: transparent; /* No extra glass – use main container's */
    padding: 0; /* Minimal padding for compact height */
    height: auto; /* Auto to match right */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header (compact) */
.header {
    text-align: center;
    margin-bottom: 1rem; /* Reduced */
}
.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-medium);
}
.header-icon i {
    font-size: 1.5rem;
    color: white;
}
.header h1 {
    font-size: 2rem; /* From assesment */
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(249, 178, 51, 0.3);
    margin-bottom: 0.5rem; /* Reduced */
}
.header p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.4;
}

/* Form (compact gaps/padding) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.form-group label i {
    color: var(--accent-yellow);
    width: 16px;
}
.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(249, 178, 51, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(249, 178, 51, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px; /* Compact */
}

/* Errors */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons (assesment style: yellow-pink gradient) */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.btn-primary,
.btn-secondary {
    flex: 1;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: visible;
    z-index: 1000;
}
.btn-primary {
    background: linear-gradient(145deg, var(--accent-yellow), #d44569, #fa124ca4); /* assesment */
    color: var(--dark-bg);
    box-shadow: var(--shadow-medium);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 178, 51, 0.4);
    background: linear-gradient(145deg, #ffc547, var(--accent-yellow)); /* assesment */
}
.btn-secondary {
    background: transparent;
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* ---------- 8. RIGHT – ILLUSTRATION (compact, auto-height) ---------- */
.right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Compact */
    width: 100%;
}
.contact-card {
    background: var(--glass-bg); /* Subtle glass */
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px; /* assesment card radius */
    padding: 1.5rem; /* Compact */
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow); /* assesment-like */
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 178, 51, 0.4);
}
.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-pink)); /* Match header */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-medium);
}
.card-icon i {
    font-size: 1.25rem;
    color: white;
}
.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}
.contact-card p {
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* ---------- 9. LOADING / SUCCESS OVERLAYS (assesment loading + contact success) ---------- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 9, 33, 0.9); /* assesment */
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.loading-overlay.show {
    display: flex;
}
.loading-content {
    text-align: center;
    color: var(--text-light);
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(249, 178, 51, 0.3); /* assesment */
    border-top: 3px solid var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-content p {
    font-size: 1.1rem;
    color: var(--muted);
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 9, 33, 0.9); /* Match loading */
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.success-overlay.show {
    opacity: 1;
    visibility: visible;
}
.success-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem; /* Compact */
    text-align: center;
    max-width: 400px;
    box-shadow: var(--shadow);
}
.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-yellow), #d44569); /* Match btn */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-medium);
}
.success-icon i {
    font-size: 1.5rem;
    color: white;
}
.success-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}
.success-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ---------- 10. RESPONSIVE (hide right ≤1024px, assesment mobile styles) ---------- */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .right {
        display: none; /* Hide cards */
    }
    .left {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start; /* Back to assesment flex-start */
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .container {
        margin-top: 1rem; /* Reduced */
        padding: 1.5rem;
        gap: 1rem;
    }
    .header h1 {
        font-size: 1.75rem; /* assesment */
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    /* assesment mobile header */
    .fixed-header {
        transition: opacity 0.4s ease, transform 0.8s ease !important;
    }
    .fixed-header.on-scroll {
        opacity: 1 !important;
        transform: translateY(-70%) !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem; /* assesment */
    }
    .header-icon,
    .success-icon {
        width: 50px;
        height: 50px;
    }
    .header-icon i,
    .success-icon i {
        font-size: 1.25rem;
    }
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .form-group textarea {
        min-height: 70px;
    }
    .success-content h2 {
        font-size: 1.25rem;
    }
    .fixed-footer {
        padding: 10px;
    }
}
