/* ============================================
   CONTACT US PAGE — Premium Redesign v3
   Self-contained: no conflicts with footer/header
   ============================================ */

/* ---- Animations ---- */
@keyframes kenburns {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.15); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(255,99,0,0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(255,99,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,99,0,0); }
}

/* ---- Hero ---- */
.contact-hero {
    height: 68vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}
.contact-hero-bg {
    position: absolute;
    inset: -8%;
    background: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?auto=format&fit=crop&w=1920&q=80') no-repeat center/cover;
    z-index: -2;
    animation: kenburns 25s ease-out infinite alternate;
}
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(92,15,217,0.6) 60%, rgba(255,99,0,0.4) 100%);
    z-index: -1;
}
.contact-hero-content {
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    max-width: 800px;
    /* Nudge up so the overlapping container looks balanced */
    transform: translateY(-30px);
}
.contact-hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.3rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.82) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.contact-hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.88);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}

/* ---- Contact Section (Overlapping) ---- */
.contact-section {
    background: #f4f6f9;
    padding: 0 0 6rem;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 1380px;
    margin: -110px auto 0;   /* Overlap hero */
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(340px, 1fr) 1.4fr;
    gap: 3rem;
    align-items: stretch;
    position: relative;
    z-index: 20;
}

/* ---- Dark Frosted Glass Info Panel ---- */
.contact-info {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Glowing background orbs */
.contact-info::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    top: -60px; left: -60px;
    background: #ff6300;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}
.contact-info::after {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    bottom: -60px; right: -60px;
    background: #5c0fd9;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}
.contact-info > * { position: relative; z-index: 2; }

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    transition: transform 0.3s ease;
}
.contact-item:hover { transform: translateX(8px); }

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ff6300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, #ff6300, #5c0fd9);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1) rotate(12deg);
    box-shadow: 0 8px 20px rgba(255,99,0,0.3);
}

.contact-text h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}
.contact-text p,
.contact-text a {
    color: rgba(255,255,255,0.88);
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s;
}
.contact-text a:hover { color: #fff; }

/* Social links inside the dark panel */
.contact-info .social-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}
.contact-info .social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.contact-info .social-links a:hover {
    background: linear-gradient(135deg, #ff6300, #5c0fd9);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,99,0,0.4);
}

/* ---- Form Card (Spinning Border) ---- */
.google-form-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 750px;
    display: flex;
    flex-direction: column;
}

/* Dark base */
.google-form-container::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #0f172a;
    border-radius: 24px;
    z-index: 0;
}

/* Spinning gradient ring */
.google-form-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 250deg,
        #ff6300 270deg,
        #5c0fd9 300deg,
        transparent 310deg
    );
    animation: spin 6s linear infinite;
    z-index: -1;
    border-radius: 32px;
}

/* ---- Native Form Styling ---- */
.native-contact-form {
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6300;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(255, 99, 0, 0.2);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group select {
    color: rgba(255,255,255,0.7);
}
.form-group select option {
    background: #0f172a;
    color: #fff;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.3rem;
    padding-top: 0.5rem;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffb400; /* Gold */
}
.star-rating label:hover {
    transform: scale(1.1);
}

.form-submit-btn {
    background: linear-gradient(135deg, #ff6300, #5c0fd9);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(92, 15, 217, 0.3);
}

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

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: 1rem;
}
.form-status.success {
    display: block;
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid #48bb78;
}
.form-status.error {
    display: block;
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid #f56565;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .native-contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ---- Map ---- */
.map-section {
    margin: 5rem auto 0;
    max-width: 1380px;
    padding: 0 2rem;
    height: 460px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(80%) contrast(1.1) brightness(0.95);
    transition: filter 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
    transform-origin: center center;
}
.map-section:hover iframe {
    filter: grayscale(0) contrast(1) brightness(1);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .contact-container { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        margin-top: -60px;
        gap: 2rem;
    }
    .google-form-container { min-height: 700px; }
    .compact-form-iframe { min-height: 700px; }
}
@media (max-width: 768px) {
    .contact-hero { min-height: 440px; height: 52vh; }
    .contact-hero-content { transform: translateY(0); }
    .contact-info { padding: 2.5rem 2rem; border-radius: 22px; }
    .contact-item { flex-direction: column; gap: 0.8rem; }
    .contact-item:hover { transform: translateY(-4px); }
    .contact-info .social-links { justify-content: center; }
    .map-section { height: 380px; border-radius: 20px; margin: 4rem 1rem 0; padding: 0; }
}
@media (max-width: 576px) {
    .contact-container { padding: 0 1rem; margin-top: -40px; }
    .contact-info { padding: 2rem 1.5rem; border-radius: 18px; }
    .google-form-container { min-height: 680px; border-radius: 20px; }
    .compact-form-iframe { min-height: 680px; border-radius: 16px; }
    .map-section { height: 300px; margin: 3rem 0.5rem 0; }
}
