:root {
    --gold-color: #d4b46e;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
}

/* Remove differentiating line between sections in contact page */
.contact-section section:not(:first-child)::before {
    display: none !important;
}

.contact-section {
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

[data-theme="light"] .contact-section {
    background-color: #ffffff;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.section-label {
    color: var(--gold-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.main-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    color: var(--gold-color);
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

[data-theme="light"] .main-title {
    color: #1a1a1a;
}

[data-theme="light"] .subtitle {
    color: #333333;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #1a1a1a;
}

[data-theme="light"] .form-control::placeholder {
    color: #888888;
}

[data-theme="light"] .form-label {
    color: #333333;
}

/* Form Section */
.form-globe-section {
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

[data-theme="light"] .form-globe-section {
    background-color: #ffffff;
}

.form-section {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 180, 110, 0.1);
}

[data-theme="light"] .form-section {
    background-color: whitesmoke !important;
    border: 1px solid #e0e0e0;
}

.form-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.required {
    color: var(--gold-color);
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 180, 110, 0.2);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--gold-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-primary);
}

.main-title .highlight {
    font-weight: 500;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-wrapper {
    display: flex;
    justify-content: center;
}

.globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    /* slightly bigger to dominate visually */
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#globe-3d,
#globe-2d-overlay,
#globe-popup-overlay,
.globe-popup {
    display: block;
    position: absolute;
}

#globe-2d-overlay,
#globe-popup-overlay {
    pointer-events: none;
}

.globe-popup {
    top: 0;
    left: 0;
    background-color: var(--gold-color);
    opacity: 0;
    color: #000;
    font-family: 'SF Pro Text', sans-serif;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.5));
}

.city-labels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.city-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

[data-theme="light"] .city-label {
    color: #333333;
}

.city-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: cityPulse 2s ease-in-out infinite;
}

.client-base-label {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Form Styling */
.form-section {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    /* smaller padding */
    border: 1px solid rgba(26, 26, 26, 0.8);
    width: 100%;
    max-width: 600px;
    /* smaller form width */
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-title {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

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

.form-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 10px;
    display: block;
    font-weight: 500;
}

.form-label .required {
    color: var(--gold-color);
}

.form-control,
.form-select {
    width: 100%;
    padding: 8px 12px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-family: 'SF Pro Text', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-color);
    background: #0f0f0f;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

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

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--gold-color);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SF Pro Text', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    animation: fadeIn 0.5s ease;
}

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

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

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #000;
    font-weight: bold;
}

.success-message h3 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 10px;
}

.success-message p {
    font-family: 'SF Pro Text', sans-serif;
    font-size: 16px;
    color: #999;
}

.schedule-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.schedule-link a {
    color: var(--gold-color);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-color);
    transition: opacity 0.3s ease;
}

.schedule-link a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #2a2a2a;
}

.social-link:hover {
    background: var(--gold-color);
    color: #000;
    transform: translateY(-2px);
}

/* Animations */
.animate-slide-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

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

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1s;
}

.animate-globe {
    opacity: 0;
    animation: globeReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes globeReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-city {
    opacity: 0;
    transform: translateY(20px);
    animation: cityReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(0.8s + var(--delay));
}

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

.animate-form {
    opacity: 0;
    transform: translateY(30px);
    animation: formReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

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

.animate-input {
    opacity: 0;
    transform: translateY(20px);
    animation: inputReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(0.8s + var(--delay));
}

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

.animate-btn {
    opacity: 0;
    animation: btnReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.5s;
}

@keyframes btnReveal {
    to {
        opacity: 1;
    }
}

@keyframes cityPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .contact-section {
        padding: 60px 20px;
    }

    .main-title {
        font-size: 42px;
    }

    .form-globe-section {
        padding: 50px 20px;
    }

    .form-section {
        padding: 35px;
        max-width: 520px;
    }

    .globe-wrapper {
        height: 520px;
        max-width: 600px;
    }
}

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

    .contact-section {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 36px;
    }

    .form-globe-section {
        padding: 40px 16px;
    }

    .form-section {
        padding: 25px;
        max-width: 100%;
    }

    /* Globe should remain centered and fit mobile screens */
    .globe-wrapper {
        max-width: 100%;
        height: clamp(320px, 70vw, 440px);
    }

    .globe-background .globe-wrapper {
        max-height: 400px;
    }

    .globe-background .city-labels {
        bottom: 60px;
        gap: 15px;
    }

    .city-label {
        font-size: 12px;
    }
}

/* Form Validation Styles */
.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 12px;
    display: none;
    font-family: 'SF Pro Text', sans-serif;
}

.form-control.invalid,
.form-select.invalid {
    border-color: #ff4d4d !important;
}

.form-control.invalid:focus,
.form-select.invalid:focus {
    box-shadow: 0 4px 20px rgba(255, 77, 77, 0.15) !important;
}