/* ==========================================================================
   Golden Auto Service - Web Application Main Stylesheet (webapp.css)
   ========================================================================== */

:root {
    --bg-body: #09090b;
    --bg-surface: #121215;
    --bg-card: #18181b;
    --bg-card-hover: #222226;
    --border: #27272a;
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --gold-light: #fbbf24;
    --text-main: #f4f4f5;
    --text-sub: #a1a1aa;
    --accent-red: #ef4444;
    --accent-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Modern Form Styling */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #d4d4d8;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

.form-label i {
    color: var(--gold);
    font-size: 13px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap i.field-icon {
    position: absolute;
    left: 14px;
    color: #71717a;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-wrap .form-control {
    padding-left: 40px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #18181b !important;
    border: 1px solid #3f3f46 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    appearance: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: #71717a !important;
    font-size: 13px !important;
}

.form-control:hover {
    border-color: #52525b !important;
    background: #1f1f23 !important;
}

.form-control:focus {
    border-color: var(--gold) !important;
    background: #202024 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), inset 0 1px 2px rgba(0,0,0,0.4) !important;
}

.input-icon-wrap:focus-within i.field-icon {
    color: var(--gold);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding-right: 40px !important;
    cursor: pointer;
}

select.form-control option {
    background-color: #18181b;
    color: #fff;
    padding: 10px;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(100%) saturate(500%) hue-rotate(5deg);
    cursor: pointer;
}

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

/* Responsive Form Rows & Input Groups */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    white-space: nowrap;
}

/* Appointment & Damaged Car Layout Grids */
.appointment-page-grid {
    max-width: 1240px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 36px;
    align-items: start;
}

.appointment-card-wrap {
    padding: 32px;
}

@media (max-width: 768px) {
    .appointment-card-wrap {
        padding: 20px 16px;
    }
}

.damaged-car-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(24, 24, 27, 0.95));
    border: 1px solid #7f1d1d;
    border-radius: 20px;
    padding: 45px 40px;
    margin: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Top Announcement Bar */
.top-banner {
    background: linear-gradient(90deg, #b45309, #d97706, #b45309);
    color: #000;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.top-banner a {
    color: #000;
    text-decoration: underline;
}

/* Navbar */
header.site-header {
    background: rgba(9, 9, 11, 0.90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.brand-logo-text h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-logo-text span {
    font-size: 10.5px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    white-space: nowrap;
}

nav.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

nav.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    padding: 6px 4px;
}

nav.nav-links a:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-call:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-appointment {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #000;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-appointment:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    transform: translateY(-1px);
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 420px;
    background: #18181b;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.pwa-banner-text span {
    font-size: 12px;
    color: var(--text-sub);
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pwa-install {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pwa-close {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

/* Shared Card Component */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

/* Shared Buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #000;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.55);
    color: #000;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Shared Section & Grid Containers */
.section-wrap {
    padding: 60px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-subtitle {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-sub);
    font-size: 15px;
    max-width: 650px;
    margin: 0 auto;
}

/* Campaign Cards Grid */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}

.campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.campaign-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
}

.campaign-card.featured {
    border-color: var(--gold);
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 70%), var(--bg-card);
}

.campaign-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.campaign-price {
    font-size: 38px;
    font-weight: 900;
    color: var(--gold);
    margin: 16px 0;
    line-height: 1;
}

.campaign-features-list {
    list-style: none;
    margin: 20px 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campaign-features-list li {
    color: var(--text-sub);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaign-features-list li i {
    color: #34d399;
    font-size: 13px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Footer */
footer.site-footer {
    background: #0d0d0f;
    border-top: 1px solid var(--border);
    padding: 60px 24px 25px 24px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-col p {
    color: var(--text-sub);
    font-size: 13.5px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sub);
    font-size: 13px;
}

/* Hamburger Button & Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-nav-drawer {
    display: none;
    flex-direction: column;
    background: rgba(18, 18, 21, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px 20px;
    gap: 12px;
    animation: slideDown 0.25s ease-out;
}

.mobile-nav-drawer.active {
    display: flex;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mobile-nav-drawer a {
    color: #f4f4f5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a:active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--gold);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    nav.nav-links { gap: 12px; }
    nav.nav-links a { font-size: 12.5px; }
    .header-container { padding: 10px 16px; gap: 12px; }
    .btn-call { padding: 6px 10px; font-size: 12px; }
    .btn-appointment { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 992px) {
    nav.nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .appointment-page-grid { grid-template-columns: 1fr; gap: 28px; }
    .damaged-car-section { grid-template-columns: 1fr; padding: 30px 20px; }
}

@media (max-width: 768px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    .section-wrap {
        padding: 35px 16px;
    }
    .appointment-hero {
        padding: 40px 16px !important;
    }
    .appointment-hero h1 {
        font-size: 26px !important;
    }
    .top-banner {
        flex-direction: column;
        gap: 2px;
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
    }
    .top-banner span.separator { display: none; }
    .header-container {
        padding: 8px 12px;
        gap: 10px;
    }
    .brand-logo {
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 105px);
    }
    .brand-logo-img {
        max-height: 38px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }
    .brand-logo-icon { width: 34px; height: 34px; font-size: 15px; flex-shrink: 0; }
    .brand-logo-text { min-width: 0; overflow: hidden; }
    .brand-logo-text h1 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-logo-text span { font-size: 8.5px; letter-spacing: 0.8px; white-space: nowrap; }
    
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }
    .btn-call {
        padding: 7px 9px;
        font-size: 12px;
        border-radius: 8px;
    }
    .btn-call span { display: none; }
    .btn-appointment {
        padding: 7px 10px;
        font-size: 11.5px;
        border-radius: 8px;
    }
    .btn-appointment span { display: none; }
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 18px;
        right: 18px;
    }
    .pwa-banner {
        left: 12px;
        right: 12px;
        bottom: 78px;
        max-width: none;
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 6px 10px;
        gap: 8px;
    }
    .brand-logo-img {
        max-height: 34px;
    }
    .header-actions {
        gap: 5px;
    }
    .btn-call {
        padding: 6px 8px;
    }
    .btn-appointment {
        padding: 6px 8px;
    }
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
    }
}
