/* =============================================
   Appointment Form - Custom CSS
   appointment-style.css
   ============================================= */

/* =============================================
   1. ROOT VARIABLES
   ============================================= */
:root {
    --primary-color: #cb0c0c;
    --secondary-color: #952624;
    --primary-light: #e63946;
    --primary-dark: #8b0000;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(203, 12, 12, 0.15);
    --shadow-xl: 0 20px 60px rgba(203, 12, 12, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

 
/* =============================================
   2. APPOINTMENT SECTION
   ============================================= */
.appointment-section {
    
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Background Shapes */
/* .appointment-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.15), rgba(149, 38, 36, 0.1));
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.1), rgba(149, 38, 36, 0.08));
    bottom: -150px;
    right: 10%;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.12), rgba(149, 38, 36, 0.06));
    top: 30%;
    right: -100px;
    animation: float 22s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, 30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 50px) rotate(-5deg);
    }
    75% {
        transform: translate(20px, -30px) rotate(3deg);
    }
} */

/* =============================================
   3. FORM WRAPPER
   ============================================= */
.appointment-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    margin: 20px;
}
/* 
.appointment-form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.appointment-form-wrapper:hover::before {
    opacity: 0.1;
} */

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(203, 12, 12, 0.3);
    }
}

.form-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 1rem;
    margin: 0;
}

/* =============================================
   4. FORM CONTROLS
   ============================================= */
.appointment-form .form-group {
    position: relative;
    margin-bottom: 0;
}

.appointment-form .form-label {
    display: block;
    font-size: 0.99rem;
    font-weight: 400;
    color: #455360;
    margin-bottom: 6px;
    padding-left: 6px;
    transition: var(--transition);
}

.appointment-form .form-label i {
    /* color: var(--primary-color); */
    font-size: 0.96rem;
}

.appointment-form .form-control,
.appointment-form .form-select {
    border: 1px solid #dfd7d7;
    border-radius: 9px;
    padding: 14px 18px;
    font-size: 0.95rem;
    height: auto;
    transition: var(--transition);
    background-color: #ffffff;
    width: 100%;

}

.appointment-form .form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(203, 12, 12, 0.15);
    background-color: var(--white);
    outline: none;
}

.appointment-form textarea.form-control {
    resize: vertical;
    min-height: 76px;
}

/* Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 8px;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Phone Input Styling */
.phone-input-wrapper {
    position: relative;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 12px 0 0 12px;
}

/* =============================================
   5. SUBMIT BUTTON
   ============================================= */
.btn-submit {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 9px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-text,
.btn-loading {
    position: relative;
    z-index: 1;
}

/* =============================================
   6. CONTACT INFO
   ============================================= */
.contact-info-bottom {
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.info-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.info-item i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
}

/* =============================================
   7. IMAGE SECTION
   ============================================= */
.appointment-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.appointment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.appointment-image-wrapper:hover .appointment-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(203, 12, 12, 0.3), rgba(149, 38, 36, 0.2));
    z-index: 1;
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: floatStat 3s ease-in-out infinite;
}

.floating-stat.stat-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-stat.stat-2 {
    bottom: 30%;
    right: 5%;
    animation-delay: 1s;
}

.floating-stat.stat-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes floatStat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* =============================================
   8. SUCCESS MESSAGE
   ============================================= */
.alert-success {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    color: #198754;
    padding: 16px 20px;
    animation: slideIn 0.5s ease-out;
}

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

/* =============================================
   9. RESPONSIVE DESIGN
   ============================================= */

/* Tablets (≤ 991px) */
@media (max-width: 991px) {
    .appointment-section {
        padding: 60px 0;
    }
    
    .appointment-form-wrapper {
        padding: 40px 30px;
        margin: 20px 0;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .appointment-image-wrapper {
        min-height: 500px;
        margin-top: 40px;
    }
    
    .floating-stat {
        padding: 15px;
    }
    
    .stat-content h3 {
        font-size: 1.2rem;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .appointment-section {
        padding: 40px 0;
    }
    
    .appointment-form-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
        margin: 10px;
    }
    
    .form-icon {
        width: 70px;
        height: 70px;
    }
    
    .form-icon i {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .appointment-image-wrapper {
        min-height: 400px;
        border-radius: 20px;
    }
    
    .floating-stat {
        display: none;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        opacity: 0.4;
    }
}

/* Small Mobile (≤ 576px) */
@media (max-width: 576px) {
    .appointment-form-wrapper {
        padding: 25px 15px;
    }
    .form-header{margin-bottom: 16px;}
    .form-title {
        font-size: 1.5rem;
    }
    
    .appointment-form .form-control,
    .appointment-form .form-select {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .contact-info-bottom .row {
        gap: 10px;
    }
    .contact-info-bottom{padding-top: 10px; margin-top: 16px;}
    
    .info-item {
        padding: 12px;
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =============================================
   10. ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 