/* --- Contact Page Styles --- */
:root {
    --primary-violet: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success-green: #10b981;
    --error-red: #ef4444;
}

.contact-page {
    position: relative;
    padding: 140px 0 100px;
    background: #050212;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

[data-theme="light"] .contact-page {
    background: #f8fafc;
    color: #0f172a;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 { width: 600px; height: 600px; background: var(--primary-violet); top: -100px; right: -100px; }
.orb-2 { width: 500px; height: 500px; background: #4f46e5; bottom: -100px; left: -100px; }
.orb-3 { width: 400px; height: 400px; background: #8b5cf6; top: 40%; left: 30%; opacity: 0.1; }

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

/* --- Layout --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    position: relative;
    z-index: 10;
    align-items: center;
}

/* --- Info Section --- */
.info-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-violet);
    transform: translateX(10px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-violet);
}

.card-text span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    font-weight: 700;
}

.card-text p {
    font-size: 1.1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-violet);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* --- Form Section --- */
.contact-form {
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .info-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .social-link {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .contact-form {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width { grid-column: span 2; }

label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

input, select, textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

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

[data-theme="light"] input, 
[data-theme="light"] select, 
[data-theme="light"] textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-violet);
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
}

/* Captcha */
.captcha-container {
    margin: 30px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: inline-block;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.captcha-checkbox input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.captcha-checkbox input:checked + .checkmark {
    background: var(--primary-violet);
    border-color: var(--primary-violet);
}

.captcha-checkbox input:checked + .checkmark::after {
    content: '\2713'; /* Unicode checkmark */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 900;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-violet);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading .btn-text { display: none; }
.loading .loader { display: block; }

/* --- Toasts --- */
#toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid var(--primary-violet);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success { border-left-color: var(--success-green); }
.toast.error { border-left-color: var(--error-red); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: toastFadeOut 0.4s forwards;
}

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

/* --- Mobile --- */
@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
}
