/* --- Base Styles Config --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: #070913; 
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Cinzel', serif;
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {    
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name { 
    color: #ea580c; 
    font-size: 1.25rem; 
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ea580c;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Cinzel', serif;
}

.nav-links a:hover { 
    color: #ea580c;
}

.nav-links li {
    position: relative; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e293b; 
    min-width: 180px; 
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.3); 
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 100;
    top: 100%;
    left: 0;
    border-radius: 6px; 
    border-top: 3px solid #ea580c; 
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #f1f5f9; 
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #ea580c;
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Buttons */
.btn-donate {
    background: #ea580c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

/* --- Layout Wrapper --- */
.contact-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* --- Advanced Glowing Ambience Background Effects --- */
.glow-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background-color: #ea580c;
    top: -50px;
    left: -50px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background-color: #2563eb;
    bottom: -100px;
    right: -50px;
}

/* --- Split Layout Main Grid Container --- */
.contact-container {
    width: 100%;
    max-width: 1300px;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    align-items: center;
}

/* --- Left Side Typography & Info Cards --- */
.contact-info-side {
    padding-right: 20px;
}

.brand-header .sub-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #f97316;
    letter-spacing: 4px;
    font-weight: 600;
}

.brand-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 8px;
}

.highlight-text {
    color: #f97316;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: #f97316;
    margin: 16px 0 24px 0;
    border-radius: 2px;
}

.brand-quote {
    font-size: 14px;
    font-style: italic;
    color: #94a3b8;
    line-height: 1.6;
    border-left: 2px solid rgba(249, 115, 22, 0.4);
    padding-left: 12px;
}

.brand-quote span {
    display: block;
    font-weight: 500;
    font-style: normal;
    color: #cbd5e1;
    margin-top: 6px;
    font-size: 13px;
}

/* Info Cards Stack Layout */
.info-cards-stack {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(249, 115, 22, 0.2);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 20px;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-details p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Social Icon Panels */
.social-connect h4 {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #f97316;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* --- Right Side Advanced Form View --- */
.contact-form-side {
    position: relative;
}

.form-card {
    position: relative;
    background: rgba(18, 22, 41, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 45px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.form-header {
    margin-bottom: 35px;
}

.form-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
}

.form-header p {
    font-size: 13.5px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 12.5px;
    color: #cbd5e1;
    font-weight: 500;
}

.field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 15px;
    transition: color 0.3s ease;
}

.field-wrapper input,
.field-wrapper select,
.field-wrapper textarea {
    width: 100%;
    padding: 13px 16px 13px 46px;
    background-color: rgba(7, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: all 0.3s ease;
}

.field-wrapper select {
    appearance: none;
    cursor: pointer;
}

.alignment-top .field-icon {
    top: 16px;
}

.field-wrapper input:focus,
.field-wrapper select:focus,
.field-wrapper textarea:focus {
    border-color: #f97316;
    background-color: rgba(7, 9, 19, 0.9);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.field-wrapper input:focus ~ .field-icon,
.field-wrapper select:focus ~ .field-icon,
.field-wrapper textarea:focus ~ .field-icon {
    color: #f97316;
}

.submit-premium-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.submit-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(234, 88, 12, 0.45);
    background: linear-gradient(135deg, #f97316 0%, #fa8231 100%);
}

.submit-premium-btn:active {
    transform: translateY(0);
}

/* Success Overlay */
.success-message-overlay {
    position: absolute;
    inset: 0;
    background-color: #121629;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.success-message-overlay.active-view {
    opacity: 1;
    visibility: visible;
}

.success-content {
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message-overlay.active-view .success-content {
    transform: scale(1);
}

.success-icon-ring {
    width: 72px;
    height: 72px;
    background-color: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 36px;
    margin: 0 auto 24px auto;
}

.success-content h3 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-content p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.reset-form-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.reset-form-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Footer Design */
.trishul-seva-footer {
    background-color: #05060c; 
    padding: 70px 0 30px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px; 
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; 
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h2 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.3;
}

.footer-col h3 {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-col p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff; 
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12.5px;
    color: #475569;
    letter-spacing: 0.5px;
}

/* ==========================================
MOBILE & TABLET RESPONSIVE BREAKPOINTS
========================================== */

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-info-side {
        padding-right: 0;
        text-align: center;
    }
    .brand-header .title-divider {
        margin: 16px auto 24px auto;
    }
    .brand-quote {
        border-left: none;
        padding-left: 0;
    }
    .info-card {
        text-align: left;
    }
    .social-connect {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    /* Navbar Adjustment */
    .navbar {
        flex-wrap: wrap;
        padding: 0.8rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: #ffffff;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #1e293b;
        text-align: center;
    }

    .dropdown-content li a {
        text-align: center;
    }

@media (max-width: 640px) {
    .contact-page-wrapper {
        padding: 40px 16px;
    }
    .brand-header h2 {
        font-size: 30px;
    }
    .form-card {
        padding: 24px 16px;
    }
    .input-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .trishul-seva-footer {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .btn-donate {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .glow-1, .glow-2 {
        width: 250px;
        height: 250px;
    }
}