:root {
    --primary: #1a252f;
    --secondary: #c0a062;
    /* Gold */
    --light-bg: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

/* Auth Page */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
}

.auth-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-container h1 {
    color: var(--secondary);
    margin-bottom: 30px;
    font-size: 2rem;
}

.auth-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main App */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary);
}

.user-info a {
    color: var(--secondary);
    text-decoration: none;
    margin-left: 10px;
}

.main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-section {
    text-align: center;
    margin-bottom: 40px;
}

/* Disclaimer Tooltip Styles */
.disclaimer-container {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.info-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.info-icon:hover {
    background-color: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.disclaimer-tooltip {
    display: none;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.disclaimer-tooltip.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.disclaimer-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff3cd transparent;
}

/* Form Styles */
.estimate-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    /* Fix width overflow */
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-primary,
.btn-submit {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-primary:hover,
.btn-submit:hover {
    background-color: #b09055;
}

.agreements-section {
    background: #fdfbf7;
    padding: 15px;
    border: 1px solid #efe8d8;
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-top: 4px;
    margin-right: 10px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: var(--white);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    transition: transform 0.3s ease;
}

.chat-widget.closed {
    transform: translateY(calc(100% - 40px));
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.chat-header img.ruggy-icon {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: #fff;
    padding: 2px;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
}

.message {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.agent-message {
    background: var(--secondary);
    color: var(--primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    background: var(--white);
}

.chat-input-area input {
    flex-grow: 1;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 20px;
    margin-right: 8px;
}

.chat-input-area button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* Mic Button specific styles */
.chat-input-area .mic-btn {
    background: #e0e0e0;
    color: #333;
    padding: 5px 10px;
    margin-right: 5px;
}

.chat-input-area .mic-btn:hover {
    background: #d0d0d0;
}

/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Calendar & Time Slots */
.calendar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.flatpickr-calendar {
    box-shadow: none !important;
    border: 1px solid #ddd;
    background: #fff;
}

.flatpickr-day.selected {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--primary) !important;
    font-weight: bold;
}

.time-slots-container {
    text-align: center;
    margin-bottom: 30px;
}

.time-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.time-slot {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: var(--text-color);
}

.time-slot:hover {
    border-color: var(--secondary);
    background: #fffdf5;
}

.time-slot.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Payment Badges */
.payment-section {
    text-align: center;
    margin: 30px 0 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #333;
    display: inline-block;
}

.badge.square {
    background: #3b3b3b;
}

/* Square Grey */
.badge.visa {
    background: #1a1f71;
}

/* Visa Blue */
.badge.mc {
    background: #eb001b;
}

/* MasterCard Red */
.badge.amex {
    background: #2790c3;
}

/* Amex Blue */
.badge.debit {
    background: #007f3f;
}

/* Green */

.small-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.ruggy-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid var(--secondary);
    padding: 4px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Updated to Dance Animation */
    animation: ruggy-dance 2s infinite ease-in-out;
}

.chat-header img.ruggy-icon {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: #fff;
    padding: 2px;
    /* Added Dance Animation */
    animation: ruggy-dance 2s infinite ease-in-out;
}

@keyframes ruggy-dance {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-10deg);
    }

    75% {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* HERO CHAT (Inline) */
.hero-chat-section {
    margin: -20px auto 30px auto;
    max-width: 600px;
    width: 95%;
}

.chat-container-static {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.chat-header-static {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header-static h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

.chat-header-static p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #ddd;
}

.chat-body-static {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}

.chat-input-static {
    display: flex;
    padding: 10px;
    gap: 10px;
    background: white;
}

.chat-input-static input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
}

.chat-input-static button.send-btn-static {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.chat-input-static button.send-btn-static:hover {
    background: var(--secondary);
}

/* Gallery Styles */
.gallery-section {
    margin-bottom: 40px;
    text-align: center;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: thin;
}

.gallery-card {
    flex: 0 0 80%;
    /* Mobile friendly default */
    max-width: 300px;
    scroll-snap-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

@media (min-width: 600px) {
    .gallery-card {
        flex: 0 0 300px;
    }
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Wizard Styles */
.form-step {
    animation: fadeIn 0.4s ease;
}

.progress-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    background: var(--secondary);
    height: 100%;
    transition: width 0.4s ease;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.btn-secondary:hover {
    background: #5a6268;
}