/* ==========================================================================
   Orbytes Global - Enterprise Contact Page Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary-blue: #0052cc;
    --primary-blue-hover: #0747a6;
    --primary-blue-light: #f0f6ff;
    --primary-blue-border: #bfdbfe;
    --dark-blue: #091e42;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack navbar, content container, and footer vertically */
    background: var(--bg-page);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Contact Page Container Card
   -------------------------------------------------------------------------- */
.contact-container {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 120px auto 70px;
    padding: 0;
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 16px 40px -8px rgba(9, 30, 66, 0.08), 0 0 0 1px rgba(9, 30, 66, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Left Panel: Contact Information
   -------------------------------------------------------------------------- */
.contact-info {
    width: 42%;
    min-width: 360px;
    padding: 44px 36px;
    background: linear-gradient(145deg, #091e42 0%, #0052cc 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.contact-subtitle {
    color: #e2e8f0;
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 18px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 18px;
    color: #38bdf8;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.office-location {
    margin-bottom: 10px;
}

.office-location:last-child {
    margin-bottom: 0;
}

.office-tag {
    display: inline-block;
    font-weight: 600;
    color: #93c5fd;
    font-size: 0.86rem;
    margin-bottom: 2px;
}

.info-content p {
    color: #f1f5f9;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.info-content a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: #ffffff;
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Right Panel: Form Section
   -------------------------------------------------------------------------- */
.contact-form {
    width: 58%;
    padding: 44px 40px;
    background: #ffffff;
}

.contact-form h2 {
    color: var(--dark-blue);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #0f172a;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
    outline: none;
}

.focus-border {
    display: none;
}

/* --------------------------------------------------------------------------
   Submit Button
   -------------------------------------------------------------------------- */
.submit-btn {
    background: linear-gradient(135deg, #0052cc 0%, #0077ff 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
    transition: var(--transition);
    margin-top: 6px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0747a6 0%, #0066ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.35);
}

.submit-btn.loading {
    opacity: 0.85;
    pointer-events: none;
    cursor: not-allowed;
    background: #0047b3;
}

/* --------------------------------------------------------------------------
   Validation States & Status Banners
   -------------------------------------------------------------------------- */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ef4444 !important;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error-msg {
    display: block;
    color: #ef4444;
    font-size: 0.82rem;
    margin-top: 6px;
    animation: fieldShake 0.25s ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.form-status-banner {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}

.form-status-banner.error {
    display: flex;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-status-banner.success {
    display: flex;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* --------------------------------------------------------------------------
   Modal Styles
   -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 30, 66, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(9, 30, 66, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content i {
    font-size: 52px;
    color: #10b981;
    margin-bottom: 18px;
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-muted);
    line-height: 1.5;
}

.close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--dark-blue);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-right {
    animation: slideRight 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

/* --------------------------------------------------------------------------
   Footer Section Override
   -------------------------------------------------------------------------- */
footer.footer-section,
.footer-section {
    width: 100% !important;
    margin-top: auto !important;
}

/* --------------------------------------------------------------------------
   Responsive Design: Tablet & Laptop (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .contact-container {
        width: calc(100% - 40px);
        margin: 100px auto 60px;
        flex-direction: column;
        border-radius: 18px;
    }

    .contact-info {
        width: 100%;
        min-width: 0;
        padding: 36px 30px;
    }

    .contact-form {
        width: 100%;
        min-width: 0;
        padding: 36px 30px;
    }
}

/* --------------------------------------------------------------------------
   Responsive Design: Mobile Phones (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .contact-container {
        width: calc(100% - 24px);
        margin: 95px auto 40px;
        border-radius: 16px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        min-width: 0;
        padding: 26px 18px;
    }

    .contact-info h1 {
        font-size: 1.8rem;
    }

    .contact-form h2 {
        font-size: 1.45rem;
    }

    .info-item {
        padding: 14px 12px;
        gap: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 16px !important; /* Prevents iOS auto-zoom on input focus */
    }

    .submit-btn {
        padding: 13px 24px;
        font-size: 0.95rem;
    }
}