/* Meal cards styling */

.veg-meal-card {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.non-veg-meal-card {
    border-left: 4px solid #dc3545;
    transition: all 0.3s ease;
}

.veg-meal-card .card-body {
    background-color: rgba(40, 167, 69, 0.05);
}

.non-veg-meal-card .card-body {
    background-color: rgba(220, 53, 69, 0.05);
}

.veg-meal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.1);
}

.non-veg-meal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.1);
}


/* Meal info icons */

.veg-icon,
.non-veg-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid;
    position: relative;
    margin-right: 5px;
    vertical-align: middle;
}

.veg-icon {
    border-color: #28a745;
}

.veg-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 1px;
}

.non-veg-icon {
    border-color: #dc3545;
}

.non-veg-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 1px;
}


/* Meal type indicators for radio buttons */

.form-check-input[type="radio"][name="foodPreference"][value="Vegetarian"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input[type="radio"][name="foodPreference"][value="Non-Vegetarian"]:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-input[type="radio"][name="foodPreference"][value="Both"]:checked {
    background: linear-gradient(45deg, #28a745 50%, #dc3545 50%);
    border-color: #6c757d;
}


/* Mobile number field focus styling */

#mobile:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}


/* First step indicator for mobile field */

.first-step-field {
    position: relative;
}

.first-step-field::after {
    content: "Step 1";
    position: absolute;
    top: 0;
    right: 0;
    background-color: #8B4513;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0 0.25rem 0 0.25rem;
    opacity: 0.9;
}


/* Pulse animation for mobile input focus */

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 69, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 69, 19, 0);
    }
}

.pulse-animation {
    animation: pulse-border 2s infinite;
}


/* Enhanced Styles for The Taste Story Subscription Form */


/* Header styles */

header {
    background: #8B4513;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

h1,
h2,
h3,
h4,
h5 {
    color: #8B4513;
}


/* Card styles */

.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


/* Form styles */

.form-label {
    font-weight: 500;
    color: #5a5a5a;
}

.form-check-label {
    color: #333;
}

.form-control:focus,
.form-select:focus {
    border-color: #A0522D;
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

.input-with-loader {
    position: relative;
}

.input-with-loader .loader {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-left-color: #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.input-with-loader.loading .loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}


/* Button styles */

.btn-primary {
    background-color: #8B4513;
    border-color: #8B4513;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #A0522D;
    border-color: #A0522D;
}

.btn-outline-secondary:hover {
    background-color: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    border-color: #8B4513;
}


/* Location status styles */

.location-status {
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.status-loading {
    color: #084298;
}

.status-success {
    color: #0f5132;
}

.status-error {
    color: #842029;
}


/* Validation styles */

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}


/* Toast notification */

#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

#toastContainer .alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease;
}

#toastContainer .alert-success {
    border-left-color: #28a745;
}

#toastContainer .alert-danger {
    border-left-color: #dc3545;
}

#toastContainer .alert-info {
    border-left-color: #0dcaf0;
}

#toastContainer .alert-warning {
    border-left-color: #ffc107;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Footer styles */

footer {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    color: #6c757d;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}


/* Mobile responsiveness */

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0.5rem;
    }
    .display-5 {
        font-size: 1.8rem;
        color: #f8f9fa !important;
    }
    .container {
        padding: 0 15px;
    }
    .card {
        margin-bottom: 1.5rem;
    }
}