/* =========================================
   1. THEME VARIABLES
   ========================================= */
:root {
    --salon-primary: #b76e79; /* Rose Gold */
    --salon-primary-hover: #a35d68;
    --salon-dark: #2c3e50; /* Dark Slate */
    --salon-bg: #fdfbf7; /* Warm White */
    --salon-card-bg: #ffffff;
    --salon-text: #4a4a4a;
    --radius: 12px;
}

/* =========================================
   2. GLOBAL TYPOGRAPHY
   ========================================= */
body {
    background-color: var(--salon-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--salon-text);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--salon-dark);
}

a {
    color: var(--salon-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--salon-primary-hover);
    }

/* =========================================
   3. BUTTONS
   ========================================= */
/* Primary Button (Rose Gold Gradient) */
.btn-primary, .btn-salon-primary {
    background: linear-gradient(135deg, #b76e79 0%, #d48a95 100%);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
    transition: all 0.3s ease;
}

    .btn-primary:hover, .btn-salon-primary:hover,
    .btn-primary:focus, .btn-salon-primary:focus,
    .btn-primary:active {
        background: linear-gradient(135deg, #d48a95 0%, #b76e79 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(183, 110, 121, 0.5) !important;
        border: none !important;
        color: white !important;
    }

/* Outline Button */
.btn-outline-primary {
    color: var(--salon-primary);
    border: 2px solid var(--salon-primary);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--salon-primary);
        border-color: var(--salon-primary);
        color: white;
    }

/* Dark Button (Search/Action) */
.btn-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
}

    .btn-dark:hover {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(44, 62, 80, 0.5);
    }

/* =========================================
   4. CARDS & CONTAINERS
   ========================================= */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: var(--salon-card-bg);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--salon-text) !important;
}

    .nav-link:hover {
        color: var(--salon-primary) !important;
    }

/* =========================================
   6. GLOBAL INPUT FIXES (CRITICAL)
   ========================================= */
/* Force all text inputs to have black text on white background everywhere */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select,
.form-control {
    color: #000000 !important; /* Pure Black Text */
    background-color: #ffffff !important; /* Pure White BG */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    /* iOS Safari Fixes */
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

/* Placeholder Text Styling */
::placeholder {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
    opacity: 1 !important;
}

/* Focus States */
.form-control:focus {
    border-color: var(--salon-primary);
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.1);
    background-color: #ffffff !important;
}

/* Specific fix for Hero Search Pill Inputs to remove borders */
.search-pill-container input,
.input-group input {
    border: none !important;
    box-shadow: none !important;
}

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    /* Navbar Collapse Fixes */
    .navbar form,
    .navbar .d-flex {
        width: 100% !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .navbar .btn-outline-light {
        color: #2c3e50;
        border-color: #2c3e50;
        width: 100%;
        margin-top: 10px;
    }
}

/* SEARCH BAR STACKING FIX (For Phones) */
@media (max-width: 768px) {
    /* 1. Transform the pill into a vertical box */
    .search-pill-container {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 20px !important;
        gap: 15px;
        background-color: white !important;
        width: 100% !important;
    }

        /* 2. Make inputs visible and full width */
        .search-pill-container input {
            width: 100% !important;
            min-height: 45px !important; /* Larger touch target */
            border-bottom: 1px solid #eee !important; /* Separator line */
            margin-bottom: 5px;
            font-size: 16px !important; /* Prevents iOS zoom */
            text-align: left;
        }

        /* 3. Make the Search Button full width */
        .search-pill-container button {
            width: 100% !important;
            margin-top: 10px;
            border-radius: 12px !important;
        }

        /* 4. Hide vertical dividers */
        .search-pill-container .vr,
        .search-pill-container .border-end {
            display: none !important;
        }
}
