* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a77c;
    --secondary-color: #8b7355;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #faf9f7;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(201, 167, 124, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
    color: var(--text-dark);
    padding: 40px 40px 60px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.back-to-site {
    position: absolute;
    top: 25px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-to-site:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(201, 167, 124, 0.3);
}

.logo-header {
    margin-bottom: 25px;
}

.logo-main {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.badge {
    display: inline-block;
    background: rgba(201, 167, 124, 0.15);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(201, 167, 124, 0.3);
}

.header-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5em;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--text-dark);
    line-height: 1.2;
}

.header-content h1 .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--primary-color);
}

.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 20px auto;
}

.subtitle {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
}

.description {
    font-size: 1em;
    opacity: 0.85;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.info-item input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.info-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Distance Calculator */
.distance-calculator {
    background: linear-gradient(135deg, rgba(201, 167, 124, 0.08) 0%, rgba(139, 115, 85, 0.05) 100%);
    border: 2px solid rgba(201, 167, 124, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.distance-info > i {
    font-size: 2em;
    color: var(--primary-color);
}

.distance-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.distance-label {
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 500;
}

.distance-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

.distance-cost {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--secondary-color);
}

.distance-note {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.9em;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.distance-note i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* Services Section */
.services-section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.service-item {
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.service-item:hover {
    background: #f0ede8;
    transform: translateX(5px);
}

.service-checkbox,
.quantity-input {
    margin-top: 5px;
    cursor: pointer;
}

.service-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--primary-color);
}

.quantity-input {
    width: 70px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.service-item label {
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
}

.service-item .description {
    color: var(--text-light);
    font-size: 0.95em;
}

.service-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.service-item.inline {
    margin-bottom: 0;
}

/* Note */
.note {
    background: #fff9e6;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--text-light);
}

/* Total Section */
.total-section {
    margin: 40px 0;
}

.total-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1em;
}

.total-row:first-child {
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 20px;
    margin-bottom: 15px;
}

.total-row.deposit {
    font-size: 0.95em;
    opacity: 0.9;
}

/* Signature Section */
.signature-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

.signature-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.canvas-container {
    margin: 30px 0;
}

.canvas-container label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}

#signatureCanvas {
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 600px;
    height: 200px;
    background: var(--white);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f5f3f0;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-secondary:hover {
    background: #e8e6e3;
}

/* Contact Info */
.contact-info {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
    color: var(--text-light);
}

.contact-info p {
    font-size: 1.05em;
    margin: 8px 0;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

.location {
    font-size: 0.95em !important;
    opacity: 0.8;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-section {
    animation: fadeIn 0.6s ease;
}

/* Price highlight animation */
@keyframes priceUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#totalPrice.updating {
    animation: priceUpdate 0.3s ease;
}
