/* Design System Colors */
:root {
    /* Dental Excellence brand: deep navy + warm peach/rose-gold */
    --background: #f7f2ec;
    --foreground: #1f2843;

    --card: #ffffff;
    --card-foreground: #1f2843;

    --primary: #1f2843;
    --primary-foreground: #f7f2ec;

    --rose: #dfa98d;
    --rose-deep: #c97a60;
    --navy: #1f2843;

    --muted: #f5f0e8;
    --muted-foreground: #6b7280;

    --border: #e8dcd3;
    --shadow-soft: 0 10px 40px -10px rgba(31, 40, 67, 0.15);
    --shadow-card: 0 4px 20px -4px rgba(201, 122, 96, 0.12);

    --gradient-rose: linear-gradient(135deg, #f9ede5 0%, #ede5df 100%);
    --error: #ef4444;
    --error-foreground: #ffffff;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--error);
    color: var(--error-foreground);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px -10px rgba(239, 68, 68, 0.4);
    z-index: 9999;
    min-width: 280px;
    max-width: 400px;
    animation: slideInUp 0.3s ease-out;
}

.notification-toast.hidden {
    display: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.notification-toast.removing {
    animation: slideOutDown 0.3s ease-out forwards;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    opacity: 0.95;
}

/* General Styles */
* {
    border-color: var(--border);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: Playfair Display,Georgia,serif;
}

html {
    background-color: var(--background);
}

/* Typography */
.font-serif {
    font-family: Playfair Display,Georgia,serif;
    font-weight: 700;
}

.text-primary {
    color: var(--primary) !important;
}

.text-rose-deep {
    color: var(--rose-deep) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

.text-primary-70 {
    color: rgba(31, 40, 67, 0.7);
}

.text-primary-80 {
    color: rgba(31, 40, 67, 0.8);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.btn-primary:hover {
    background-color: #152a38;
    border-color: #152a38;
}

.btn-primary:disabled {
    background-color: #d1ccc5;
    border-color: #d1ccc5;
    opacity: 0.6;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #f5f0e8;
    color: var(--primary);
}

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--primary);
}

.btn-outline-secondary:hover {
    background-color: #f5f0e8;
    border-color: var(--border);
    color: var(--primary);
}

.btn-lg {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* Cards */
.card {
    border-color: var(--border) !important;
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: 1rem;
}

.shadow-soft {
    box-shadow: var(--shadow-soft) !important;
}

.shadow-card {
    box-shadow: var(--shadow-card) !important;
}

/* Header */
.navbar-header {
    border-bottom: 1px solid var(--border);
    background-color: var(--card);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-link {
    text-decoration: none;
    gap: 0.75rem;
}

.phone-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.phone-link:hover {
    color: var(--rose-deep);
}

/* Hero Section */
.hero-section {
    background-color: var(--background);
}

.min-vh-section {
    min-height: calc(100vh - 100px);
}

.logo-large {
    width: 224px;
    height: auto;
}

@media (min-width: 768px) {
    .logo-large {
        width: 288px;
    }
}

/* Container */
.container {
    max-width: 100%;
}

.max-width-3xl {
    max-width: 48rem;
}

.max-width-xl {
    max-width: 36rem;
}

/* Stepper */
.stepper {
    gap: 0.5rem;
}

.step-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background-color: white;
    position: relative;
    font-family: system-ui;
}

.step-item.active {
    border-color: var(--primary);
    background-color: var(--primary);
}

.step-number {
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.875rem;
}

.step-item.active .step-number {
    color: white;
}

.step-line {
    width: 2rem;
    height: 2px;
    background-color: var(--border);
}

.step-item.active ~ .step-line {
    background-color: var(--primary);
}

/* Mode Cards */
.mode-card {
    border-color: var(--border);
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mode-card:hover {
    border-color: var(--rose);
}

.mode-card-active {
    border-color: var(--rose-deep) !important;
    background-color: rgba(201, 122, 96, 0.15) !important;
}

.icon-md {
    color: var(--primary);
}

/* Form Sections */
.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #12253f;
    font-size: 20px !important;
}

.form-section small {
    color: var(--muted-foreground);
}

/* Concern Buttons */
.concern-btn {
    border-color: var(--border);
    transition: all 0.3s ease;
}

.concern-btn:hover {
    border-color: var(--rose);
}

.concern-btn.selected {
    border-color: var(--rose-deep) !important;
    background-color: rgba(201, 122, 96, 0.15) !important;
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: system-ui;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 40, 67, 0.1);
}

.form-label {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.25rem;
    font-family: system-ui;
}

.price{
    font-family: system-ui;
}

/* Radio and Checkbox */
.form-check-input {
    border: 1px solid var(--border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    color: var(--primary);
}

/* Gradient */
.gradient-rose {
    background: var(--gradient-rose);
}

/* Letter Spacing */
.letter-spacing {
    letter-spacing: 0.1em;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.5rem;
}

.gap-6 {
    gap: 2rem;
}

.gap-md-0 {
    gap: 0;
}

@media (max-width: 767px) {
    .gap-md-0 {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .gap-md-0 {
        gap: 0;
    }
}

/* Spacing */
.py-7 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-md-7 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .py-md-7 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* Display */
.display-md-3 {
    font-size: 2.5rem;
}

.display-md-4 {
    font-size: 2rem;
}

@media (max-width: 767px) {
    .display-md-3 {
        font-size: 1.875rem;
    }

    .display-md-4 {
        font-size: 1.75rem;
    }
}

.lead {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Visibility */
.step-content {
    animation: fadeIn 0.3s ease-in;
}

.step-content.d-none {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Notification */
.alert {
    min-width: 300px;
    border-radius: 0.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

/* Responsive */
@media (max-width: 767px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .row.gap-4 {
        gap: 1rem;
    }
}

/* Badge */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
}

.bg-rose-deep {
    background-color: var(--rose-deep) !important;
}

/* Text utilities */
.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: start !important;
}

.text-end {
    text-align: end !important;
}

/* Rounded */
.rounded-3 {
    border-radius: 1.5rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

/* Display utilities */
.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-5 {
    gap: 1.5rem !important;
}

/* Print styles */
@media print {
    .d-print-none {
        display: none !important;
    }
}
