/* appointment.css */
:root {
    --cream: #faf8f4;
    --dark: #1a1714;
    --rose: #c4856a;
    --taupe: #8c7b6b;
    --light: #f0ebe3;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Jost', sans-serif;
}

/* Form Card Container */
.form-card {
    max-width: 800px;
    margin: 120px auto 60px;
    background: rgba(250, 248, 244, 0.98);
    border-radius: 2px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(26, 23, 20, 0.15);
    animation: fadeInUp 0.5s ease;
    border: 0.5px solid rgba(26, 23, 20, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Title Styling */
.form-card h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.form-card h1 span {
    color: var(--rose);
    font-style: italic;
}

.form-card > p {
    font-size: 0.85rem;
    color: var(--taupe);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
    font-family: var(--font-sans);
}

.alert-success {
    background: rgba(196, 133, 106, 0.1);
    border-left: 3px solid var(--rose);
    color: var(--dark);
}

.alert-error {
    background: rgba(26, 23, 20, 0.05);
    border-left: 3px solid var(--dark);
    color: var(--dark);
}

.alert i {
    font-size: 1.25rem;
    color: var(--rose);
}

.alert p {
    margin: 0;
    flex: 1;
    font-size: 0.85rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.form-control {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 0.5px solid rgba(26, 23, 20, 0.2);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
    font-family: var(--font-sans);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--rose);
}

/* Select dropdown styling */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c7b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

/* Textarea styling */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Button Styling */
.btn-primarys {
    background: var(--dark);
    color: var(--cream);
    border: none;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    width: 100%;
}

.btn-primarys:hover {
    background: var(--rose);
    transform: translateY(-2px);
}

.btn-primarys:active {
    transform: translateY(0);
}

/* Number input spinner styling */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Date input styling */
input[type="date"] {
    cursor: pointer;
}

/* Appointment Page Background */
body.appointment-page {
    background-color: var(--cream);
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

body.appointment-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 23, 20, 0.75) 0%, rgba(26, 23, 20, 0.6) 100%);
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-card {
        margin: 100px 1rem 40px;
        padding: 1.5rem;
    }
    
    .form-card h1 {
        font-size: 1.5rem;
    }
    
    .form-card > p {
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.65rem;
    }
    
    .form-control {
        padding: 0.625rem 0;
        font-size: 0.85rem;
    }
    
    .btn-primarys {
        padding: 0.875rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.25rem;
    }
    
    .form-card h1 {
        font-size: 1.35rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
    }
}