/* ========================================
   CONTACT SECTION STYLES
   Premium Apple-Style Design
   ======================================== */

/* ----------------------------------------
   Layout & Grid
   ---------------------------------------- */

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem !important;
    margin-top: 1.5rem;
}

/* Desktop: Two columns side by side */
@media (width >=1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem !important;
    }
}

/* Contact Column */
.contact-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;

    /* Prevent overflow */
}

/* ----------------------------------------
   Contact Page Specific Overrides
   ---------------------------------------- */

/* Contact card customizations (base styles in sitewide-design-system.css) */
.contact-card {
    padding: 1.25rem !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.contact-card * {
    box-sizing: border-box !important;
}

.contact-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600;
}

.contact-description {
    font-size: 0.9rem !important;
    color: #6e6e73;
    margin-bottom: 1rem !important;
    line-height: 1.5;
}

html.dark .contact-description {
    color: #a1a1a6;
}

/* ----------------------------------------
   Contact Info Items (Email, Phone, Loc)
   ---------------------------------------- */
.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: #86868b;
    margin-left: 0;
    margin-bottom: 0.25rem;
}

.contact-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 0.85rem;
}

html.dark .contact-link-item {
    color: #f5f5f7;
}

.contact-link-item:hover {
    background: rgb(0 0 0 / 4%);
    transform: translateX(3px);
}

html.dark .contact-link-item:hover {
    background: rgb(255 255 255 / 6%);
}

.contact-link-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.link-text {
    font-weight: 500;
    font-size: 0.85rem;
}

/* Icon Boxes */

/* Icon Boxes - Apple Style Refined */
.icon-box {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
}

/* Email - Blue */
.icon-box.blue {
    background: rgb(0 122 255 / 10%) !important;
    color: #007aff !important;
    box-shadow: none !important;
}

/* Phone - Green */
.icon-box.green {
    background: rgb(52 199 89 / 10%) !important;
    color: #34c759 !important;
    box-shadow: none !important;
}

/* Location - Red (Replacing Purple) */
.icon-box.purple,
.icon-box.location {
    background: rgb(255 59 48 / 10%) !important;
    color: #ff3b30 !important;
    box-shadow: none !important;
}

/* Dark Mode Adjustments */
html.dark .icon-box.blue {
    background: rgb(10 132 255 / 15%) !important;
    color: #0a84ff !important;
}

html.dark .icon-box.green {
    background: rgb(48 209 88 / 15%) !important;
    color: #30d158 !important;
}

html.dark .icon-box.purple,
html.dark .icon-box.location {
    background: rgb(255 69 58 / 15%) !important;
    color: #ff453a !important;
}

/* Hover Effects - Go Solid */
.contact-link-item:hover .icon-box {
    transform: scale(1.1);
}

.contact-link-item:hover .icon-box.blue {
    background: #007aff !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgb(0 122 255 / 30%) !important;
}

.contact-link-item:hover .icon-box.green {
    background: #34c759 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgb(52 199 89 / 30%) !important;
}

.contact-link-item:hover .icon-box.purple,
.contact-link-item:hover .icon-box.location {
    background: #ff3b30 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgb(255 59 48 / 30%) !important;
}

/* ----------------------------------------
   Contact Form
   ---------------------------------------- */
.contact-form {
    margin-top: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem !important;
    margin-bottom: 0.65rem !important;
    width: 100% !important;
}

@media (width <=640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 0.65rem !important;
    width: 100% !important;
}

.form-label {
    display: none !important;
}

.contact-input {
    width: 100% !important;
    padding: 0.75rem 0.9rem !important;
    background: #fff !important;

    /* Solid White */
    border: 1px solid rgb(0 0 0 / 15%) !important;

    /* Slightly stronger border for visibility */
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease;
    box-shadow: none !important;

    /* Remove shadow to look cleaner on solid bg */
    color: #1d1d1f;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.contact-input::placeholder {
    color: #86868b;
    font-weight: 400;
}

.contact-input:focus {
    outline: none;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 3px rgb(0 113 227 / 10%) !important;
}

html.dark .contact-input {
    background: #000 !important;

    /* Solid Black */
    border-color: rgb(255 255 255 / 20%) !important;

    /* Stronger border for dark mode */
    color: #fff !important;
}

html.dark .contact-input::placeholder {
    color: #86868b;
}

html.dark .contact-input:focus {
    border-color: #0a84ff;
    box-shadow: 0 0 0 3px rgb(10 132 255 / 15%);
}

textarea.contact-input {
    min-height: 100px !important;
    max-height: 150px !important;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6 !important;
}

/* Submit Button */
.contact-form button[type="submit"] {
    margin-top: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgb(0 122 255 / 30%) !important;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(0 122 255 / 40%) !important;
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

html.dark .contact-form button[type="submit"] {
    background: linear-gradient(135deg, #0a84ff 0%, #06c 100%) !important;
    box-shadow: 0 4px 12px rgb(10 132 255 / 40%) !important;
}

html.dark .contact-form button[type="submit"]:hover {
    box-shadow: 0 6px 20px rgb(10 132 255 / 50%) !important;
}

.contact-description {
    color: #6e6e73;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

html.dark .contact-description {
    color: #a1a1a6;
}

.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem !important;
}

.contact-item {
    margin-bottom: 0.4rem !important;
}

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

.contact-label {
    display: block;
    font-size: 0.65rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e6e73;
    margin-bottom: 0.2rem !important;
}

html.dark .contact-label {
    color: #a1a1a6;
}

.contact-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.3rem !important;
}

/* ----------------------------------------
   Social & Support Sections
   ---------------------------------------- */
.social-section {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgb(0 0 0 / 6%);
}

html.dark .social-section {
    border-top: 1px solid rgb(255 255 255 / 10%);
}

/* Refined Hover Styles - Blue Text, No Background */
.contact-link-item:hover {
    background: transparent !important;
    transform: translateX(4px);
    color: #007aff !important;
}

.contact-link-item:hover .link-text {
    color: #007aff !important;
}

html.dark .contact-link-item:hover {
    background: transparent !important;
    color: #0a84ff !important;
}

html.dark .contact-link-item:hover .link-text {
    color: #0a84ff !important;
}

/* Support Section - Apple Style Card */
.support-section {
    margin-top: 1.5rem !important;
    padding: 1.25rem !important;
    background: #fff !important;

    /* Solid White */
    border-radius: 20px;
    border: 1px solid rgb(0 0 0 / 10%) !important;

    /* Added border for visibility */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

html.dark .support-section {
    background: #000 !important;

    /* Solid Black */
    border: 1px solid rgb(255 255 255 / 10%) !important;
}

/* Support Content */
.support-section>div:first-child {
    flex: 1;
    z-index: 2;
}

/* Ganesh Image Container */
.support-section>div:last-child {
    flex-shrink: 0;
    margin-right: -0.5rem;

    /* Pull slightly to right for balance */
}

/* Ganesh Image */
.ganesh-img {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgb(255 255 255 / 50%);
}

html.dark .ganesh-img {
    border-color: rgb(255 255 255 / 10%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
}

/* Desktop Adjustments */
@media (width >= 1024px) {
    .ganesh-img {
        width: 150px !important;

        /* Significantly larger */
        height: 150px !important;
        border-radius: 24px !important;
    }

    .support-section {
        padding: 2rem !important;
    }

    .support-section>div:last-child {
        margin-right: -1rem;

        /* Bleed effect */
    }
}

.ganesh-img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
    animation-play-state: paused;
}

/* Float Animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Support Button */
.support-coffee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #FD0 0%, #FFA500 100%);
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgb(255 165 0 / 40%);
    width: fit-content;
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.support-coffee-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 30%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.support-coffee-btn:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 4px 12px rgb(255 165 0 / 40%);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 24px rgb(255 165 0 / 70%);
        transform: scale(1.02);
    }
}

.support-coffee-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 28px rgb(255 165 0 / 50%) !important;
    animation-play-state: paused;
}

.support-coffee-btn:active {
    transform: translateY(0) scale(0.98);
}

html.dark .support-coffee-btn {
    background: linear-gradient(135deg, #FD0 0%, #FFA500 100%);
    color: #1d1d1f;
}

/* Mobile Layout */
@media (width <=768px) {
    .support-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .support-section>div:first-child {
        align-items: center;
        order: 1;
    }

    .support-section>div:last-child {
        order: 2;
        margin-top: 0.75rem;
    }

    .ganesh-img {
        width: 72px;
        height: 72px;
    }

    .support-coffee-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Social Links - Force Left Alignment on Desktop, Center on Mobile */
.wrapper {
    justify-content: flex-start !important;
}

@media (width <=768px) {
    .wrapper {
        justify-content: center !important;
    }
}

/* ----------------------------------------
   Compact Calendar Override
   ---------------------------------------- */
.compact-calendar {
    margin-top: 1rem !important;
    border: 1px solid rgb(0 0 0 / 5%);
    padding: 1.25rem !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

html.dark .compact-calendar {
    border: 1px solid rgb(255 255 255 / 10%);
}

.compact-calendar .calendar-title h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.compact-calendar .calendar-today-info {
    font-size: 0.8rem !important;
}

.compact-calendar .calendar-header {
    padding: 0 !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.compact-calendar .calendar-nav {
    gap: 0.5rem !important;
}

.compact-calendar .calendar-nav button {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
}

.compact-calendar .calendar-nav button.today-btn {
    padding: 0 0.75rem !important;
    font-size: 0.8rem !important;
    border-radius: 18px !important;
}

.compact-calendar .calendar-day-header {
    font-size: 0.7rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-calendar .calendar-grid {
    gap: 0.5rem !important;
}

.compact-calendar .calendar-day {
    font-size: 0.9rem !important;
    min-height: 40px !important;
    aspect-ratio: 1;
}

.compact-calendar .event-dot {
    width: 4px !important;
    height: 4px !important;
    bottom: 4px !important;
}

.compact-calendar .calendar-footer {
    margin-top: 1rem !important;
    padding-top: 0.75rem !important;
}

.compact-calendar .calendar-stats {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-calendar .event-legend {
    gap: 0.75rem !important;
    font-size: 0.75rem !important;
}

/* ----------------------------------------
   Unified Contact Card Sections
   ---------------------------------------- */
.contact-info-all .contact-section {
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgb(0 0 0 / 3%);
}

html.dark .contact-info-all .contact-section {
    border-bottom-color: rgb(255 255 255 / 3%);
}

.contact-info-all .contact-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-all .contact-section h3 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info-all .contact-section .contact-description {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ----------------------------------------
   Dream Companies & Cars - Marquee Animation
   ---------------------------------------- */

/* Dream Companies Marquee */
.dream-companies-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0.75rem 0 0;
    padding: 0;
    box-sizing: border-box;
}

.dream-companies-track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.dream-companies-track:hover {
    animation-play-state: paused;
}

.dream-company-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dream-company-item:hover {
    transform: scale(1.15) translateY(-3px);
}

/* Company Logo Images */
.company-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(0) brightness(1);
    background: transparent;
}

/* Dark mode - keep logos colorful and visible */
html.dark .company-logo {
    filter: brightness(1.2) contrast(1.1) grayscale(0);
}

.dream-company-item:hover .company-logo {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 4px 8px rgb(0 122 255 / 30%));
}

html.dark .dream-company-item:hover .company-logo {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 4px 8px rgb(10 132 255 / 40%));
}

/* Dream Cars Marquee */
.dream-cars-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0.75rem 0 0;
    padding: 0;
    box-sizing: border-box;
}

.dream-cars-track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.dream-cars-track:hover {
    animation-play-state: paused;
}

.dream-car-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dream-car-item:hover {
    transform: scale(1.15) translateY(-3px);
}

/* Car Logo Images */
.car-logo {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(0) brightness(1);
    background: transparent;
}

/* Dark mode - keep logos colorful and visible */
html.dark .car-logo {
    filter: brightness(1.2) contrast(1.1) grayscale(0);
}

/* Special handling for Rolls Royce - invert in dark mode for better visibility */
html.dark .dream-car-item[title="Rolls-Royce"] .car-logo {
    filter: brightness(0) invert(1);
}

.dream-car-item:hover .car-logo {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 4px 8px rgb(0 122 255 / 30%));
}

html.dark .dream-car-item:hover .car-logo {
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 4px 8px rgb(10 132 255 / 40%));
}

/* Marquee Animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Responsive */
@media (width <=768px) {
    .dream-companies-marquee,
    .dream-cars-marquee {
        margin: 0.25rem 0 0;
        overflow: hidden;
    }

    .dream-companies-track,
    .dream-cars-track {
        gap: 1.5rem;
        animation-duration: 20s;
    }

    .company-logo,
    .car-logo {
        height: 32px;
        max-width: 120px;
    }
}