/* ==================== Contact Section ==================== */
.contact-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #09090b;
    /* Zinc 950 */
}

/* Background Gradients */
.contact-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: 0;
    right: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3b82f6;
    display: block;
    margin-bottom: 10px;
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 18px;
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto;
}

/* Flex Layout */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

/* Left Column: Info */
.contact-info-col {
    flex: 1;
    min-width: 300px;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 16px;
    color: #a1a1aa;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-text a:hover {
    color: #3b82f6;
}

/* Right Column: Form */
.contact-form-col {
    flex: 1.5;
    min-width: 350px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    /* Ensure relative positioning for absolute children if needed */
    transition: all 0.3s ease;
}

/* Success Message Styling */
#successMessage {
    display: none;
    /* Hidden by default */
    text-align: center;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

#successMessage.visible {
    display: flex;
    animation: fadeIn 0.5s ease-out forwards;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    /* Emerald-500 tint */
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.success-text {
    font-size: 16px;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 30px;
}

.reset-form-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-form-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

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

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

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

.form-row {
    display: flex;
    gap: 24px;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d4d4d8;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(24, 24, 27, 0.6);
    /* Zinc-900 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #ffffff !important;
    /* Force white text */
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    /* Remove default styling */
}

/* Fix for AutoFill Background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #18181b inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-control::placeholder {
    color: #71717a;
    /* Zinc-500 */
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(24, 24, 27, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==================== Custom Toast Notification ==================== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.95);
    /* Zinc-900 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.hide {
    animation: slideOutToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
    font-size: 20px;
}

.toast-success {
    border-left: 4px solid #10b981;
    /* Emerald-500 */
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
    /* Red-500 */
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #a1a1aa;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

    .contact-title {
        font-size: 32px;
    }

    .contact-content {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-info-box {
        padding: 30px;
        margin: 0 auto 40px auto;
        max-width: 100%;
    }

    .contact-form {
        padding: 30px;
        margin: 0 auto;
        max-width: 100%;
    }

    #toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}