:root {
    --bg-color: #f4f5f7;
    --card-bg: #ffffff;
    --text-primary: #1a1b1e;
    --text-secondary: #5c5f66;
    --accent-color: #E31E24;
    --gold-color: #d4af37;
    --border-color: #e5e7eb;
    --font-family: 'Outfit', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    min-height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

/* Typography Overrides */
h1, h2, h3 {
    color: #111827;
    font-weight: 600;
}

/* Header */
.store-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 16px;
}

.logo-area {
    width: 180px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80px;
}

.store-header h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.location-badge i {
    color: var(--text-primary);
}

/* Quick Actions Row */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.quick-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--card-bg);
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.quick-icon-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.quick-icon-btn i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.quick-icon-btn span {
    font-size: 0.70rem;
    font-weight: 500;
}

/* Payment Section */
.payment-section {
    margin-bottom: 32px;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}

.payment-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.payment-btn i {
    color: var(--text-secondary);
}

.colorful-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%);
    color: #fff !important;
    border: none !important;
}

.colorful-btn i {
    color: #fff !important;
}

.colorful-btn:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
}

.animation-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(227, 30, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0);
    }
}

/* Google Reviews Card */
.review-booster {
    margin-bottom: 32px;
}

.google-review-card {
    background: #fdfdfd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.google-logo-text {
    font-family: -apple-system, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111;
}

.stars-row {
    color: #fbbc04;
    font-size: 0.9rem;
}

.review-count {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-google-review {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%);
    color: #fff;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 8px;
    transition: all 0.2s;
}

.btn-google-review:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
    color: #fff;
}

/* Services Grid */
.services-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #111;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.service-item:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.icon-circle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.service-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Warranty Section */
.warranty-section {
    margin-bottom: 32px;
}

.btn-warranty-toggle {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-warranty-toggle:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
}

.warranty-form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--border-color);
}

/* Quote Section & Tabs */
.quote-section {
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #374151;
}

.form-input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%); 
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
}

/* Manager Section */
.manager-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.btn-manager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-manager:hover {
    background: #f9fafb;
    color: #111;
}

/* Save / Default Actions */
.save-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%);
    color: #fff;
    padding: 14px;
    font-size: 0.95rem;
    border: none;
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.save-btn:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
}

.warranty-submit {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a80000 100%);
}
.warranty-submit:hover {
    background: linear-gradient(135deg, #a80000 0%, var(--accent-color) 100%);
}

/* Footer Element */
.site-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.80rem;
    padding: 24px 0;
    line-height: 1.8;
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    margin-top: 12px;
    font-family: inherit;
    font-size: inherit;
    display: inline-block;
}

.privacy-link:hover {
    color: var(--text-primary);
}

/* Privacy Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 440px;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.privacy-details {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.privacy-details p {
    margin-bottom: 12px;
}

.privacy-details strong {
    color: #111;
}