/* Lactoopia Booking System - Styles */
/* Color scheme from official brand guidelines */

:root {
    /* Brand Colors from Guidelines */
    --mandy-primary: #e26274;     /* Primary coral pink */
    --paris-daisy: #faef7c;       /* Primary bright yellow */
    --deluge-purple: #78589f;     /* Accent purple */
    --brand-white: #ffffff;       /* Secondary white */
    --brand-black: #000000;       /* Secondary black */
    
    /* Light variations for backgrounds */
    --mandy-light: #fdf3f3;       /* Mandy 50 */
    --paris-light: #fdfce9;       /* Paris Daisy 50 */
    --deluge-light: #f9f7fc;      /* Deluge 50 */
    
    /* Text colors */
    --text-dark: #2a1a38;         /* Deluge 950 for dark text */
    --text-gray: #78589f;         /* Deluge primary for gray text */
    --text-light: #ffffff;
    
    /* System colors */
    --success-green: #10B981;
    --error-red: #EF4444;
    --border-light: #e4ddf1;      /* Deluge 200 */
    
    /* Shadows with brand colors */
    --shadow: 0 4px 6px -1px rgba(226, 98, 116, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(226, 98, 116, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--paris-light) 0%, var(--mandy-light) 50%, var(--deluge-light) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-image {
    width: 200px;
    height:50px;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mandy-primary);
    margin-bottom: 5px;
}

.logo p {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Form Container */
.booking-form {
    flex: 1;
    background: var(--brand-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-container {
    padding: 40px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-number {
    background: var(--deluge-purple);
    color: var(--brand-white);
}

.progress-step.active .step-label {
    color: var(--deluge-purple);
}

.progress-step.completed .step-number {
    background: var(--success-green);
    color: var(--brand-white);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    font-size: 1.8rem;
    color: var(--deluge-purple);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* Service Selection */
.service-options {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.service-card {
    padding: 24px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--brand-white);
    position: relative;
}

.service-card:hover {
    border-color: var(--deluge-purple);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: var(--mandy-primary);
    background: var(--mandy-light);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: var(--mandy-primary);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Date and Time Selection */
.datetime-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.date-picker-container,
.time-picker-container {
    background: var(--deluge-light);
    padding: 24px;
    border-radius: 12px;
}

.date-picker-container label,
.time-picker-container label {
    font-weight: 600;
    color: var(--deluge-purple);
    margin-bottom: 12px;
    display: block;
}

#appointment-date {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#appointment-date:focus {
    outline: none;
    border-color: var(--deluge-purple);
}

.date-info {
    margin-top: 12px;
}

.date-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.selected-date-display {
    font-weight: 600;
    color: var(--deluge-purple);
    margin-bottom: 8px;
    font-size: 1rem;
}
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.time-slot {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--brand-white);
    font-size: 0.9rem;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--paris-daisy);
    background: var(--deluge-light);
}

.time-slot.selected {
    border-color: var(--deluge-purple);
    background: var(--deluge-purple);
    color: var(--brand-white);
}

.time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--border-light);
}

.select-date-first {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 20px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--deluge-purple);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deluge-purple);
}

.form-group small {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Booking Summary */
.booking-summary {
    background: var(--deluge-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 1.2rem;
    color: var(--deluge-purple);
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(120, 88, 159, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item .label {
    font-weight: 500;
    color: var(--text-gray);
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.confirmation-notice {
    background: var(--paris-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--paris-daisy);
}

.confirmation-notice p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.confirmation-notice p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--mandy-primary);
    color: var(--brand-white);
}

.btn-primary:hover:not(:disabled) {
    background: #cb3350;  /* Mandy 600 from brand guide */
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--brand-white);
    color: var(--deluge-purple);
    border: 2px solid var(--deluge-purple);
}

.btn-secondary:hover {
    background: var(--deluge-light);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-green);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.success-message h2 {
    color: var(--success-green);
    margin-bottom: 15px;
}

.success-details {
    background: var(--deluge-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.success-details ul {
    margin-top: 10px;
    padding-left: 20px;
}

.success-details li {
    margin-bottom: 5px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    background: #FFF5F5;
    border-radius: 12px;
    border: 1px solid #FED7D7;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: var(--error-red);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.error-message h3 {
    color: var(--error-red);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .progress-bar {
        margin-bottom: 30px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .datetime-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .summary-item .value {
        text-align: left;
        font-weight: 500;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        min-width: 100px;
    }
}