/* 2005 Apple Store meets Chinese Apothecary */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Header - Apple style */
.header {
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border-bottom: 1px solid #d2d2d7;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "🌿";
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: #06c;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0077ed;
    text-decoration: underline;
}

/* Main content container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 22px;
    min-height: calc(100vh - 100px);
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: linear-gradient(135deg, #8b4513, #daa520);
    border-radius: 18px;
    color: white;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.3);
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Card sections */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.card p {
    color: #6e6e73;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06c;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Buttons */
.btn {
    background: #06c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #0077ed;
}

.btn-secondary {
    background: #f5f5f7;
    color: #06c;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #e8e8ed;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e7;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: #06c;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.service-price {
    font-size: 24px;
    font-weight: 600;
    color: #06c;
    margin-bottom: 8px;
}

.service-duration {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.4;
}

/* Time slot grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.time-slot:hover:not(.disabled) {
    border-color: #06c;
    background: #f5f5f7;
}

.time-slot.selected {
    background: #06c;
    color: white;
    border-color: #06c;
}

.time-slot.disabled {
    background: #f5f5f7;
    color: #6e6e73;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Practitioner cards */
.practitioner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.practitioner-card {
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.practitioner-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.practitioner-card.selected {
    border-color: #06c;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.practitioner-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.practitioner-title {
    font-size: 14px;
    color: #06c;
    margin-bottom: 12px;
}

.practitioner-specialty {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 12px;
}

.practitioner-bio {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Appointments list */
.appointment-list {
    margin-top: 20px;
}

.appointment-item {
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.appointment-info p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 4px;
}

.appointment-actions {
    display: flex;
    gap: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .container {
        padding: 20px 16px;
    }

    .form-container {
        padding: 24px;
    }

    .btn-group {
        flex-direction: column;
    }

    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #06c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}