/*
* BloomForte Image and Form Enhancements
* Custom image sizing and form overlay styling
*/

/* ===========================================
   Image Styling Enhancements
   =========================================== */

/* Company Section and Choose Section Images */
.companySec01 .col-lg-6 img,
.chooseSection03 .chImage img {
    max-width: 100% !important;
    height: 700px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0;
}

/* About Section Thumbnail Images */
.absThumb img {
    max-width: 100% !important;
    width: 500px !important;
    height: 600px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0;
}

/* Ensure images are responsive */
@media (max-width: 991px) {
    .companySec01 .col-lg-6 img,
    .chooseSection03 .chImage img {
        height: 500px !important;
    }
    
    .absThumb img {
        width: 100% !important;
        height: 450px !important;
    }
}

@media (max-width: 767px) {
    .companySec01 .col-lg-6 img,
    .chooseSection03 .chImage img {
        height: 400px !important;
    }
    
    .absThumb img {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .companySec01 .col-lg-6 img,
    .chooseSection03 .chImage img {
        height: 300px !important;
    }
    
    .absThumb img {
        height: 280px !important;
    }
}

/* ===========================================
   Form Section Overlay Enhancement
   =========================================== */

/* Appointment Section with Form Overlay */
.appoinmentSection03 {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add overlay to appointment section */
.appoinmentSection03:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Ensure content is above overlay */
.appoinmentSection03 .container {
    position: relative;
    z-index: 2;
}

/* Form styling enhancements */
.appointment_form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.appointment_form p {
    font-size: 16px;
    color: #4A90E2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.appointment_form h3 {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

/* Form input styling */
.appointment_form .input-field input,
.appointment_form .input-field select,
.appointment_form .input-field textarea {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    width: 100%;
    height: 55px;
}

.appointment_form .input-field textarea {
    height: 120px;
    resize: vertical;
    border-radius: 15px;
}

.appointment_form .input-field input:focus,
.appointment_form .input-field select:focus,
.appointment_form .input-field textarea:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.appointment_form .input-field input::placeholder,
.appointment_form .input-field textarea::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Date and Time Picker Styling */
.appointment_form .input-field input[type="date"],
.appointment_form .input-field input[type="time"] {
    cursor: pointer;
    color: #1a1a1a;
    font-family: inherit;
}

.appointment_form .input-field input[type="date"]::-webkit-calendar-picker-indicator,
.appointment_form .input-field input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Custom styling for date and time field containers */
.appointment_form .date-field,
.appointment_form .time-field {
    position: relative;
}

.appointment_form .date-field::after {
    content: "📅";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.appointment_form .time-field::after {
    content: "🕐";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

/* Ensure date/time inputs are above the emoji icons */
.appointment_form .input-field input[type="date"],
.appointment_form .input-field input[type="time"] {
    position: relative;
    z-index: 2;
    padding-right: 50px;
}

/* Style for when date/time inputs have values */
.appointment_form .input-field input[type="date"]:valid,
.appointment_form .input-field input[type="time"]:valid {
    color: #1a1a1a;
}

/* Hide default browser date/time icons */
.appointment_form .input-field input[type="date"]::-webkit-inner-spin-button,
.appointment_form .input-field input[type="date"]::-webkit-clear-button,
.appointment_form .input-field input[type="time"]::-webkit-inner-spin-button,
.appointment_form .input-field input[type="time"]::-webkit-clear-button {
    display: none;
    -webkit-appearance: none;
}

/* Icon styling within inputs */
.appointment_form .input-field.icRight {
    position: relative;
}

.appointment_form .input-field.icRight i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    z-index: 2;
}

/* Button styling */
.appointment_form .qu_btn {
    background: linear-gradient(135deg, #4A90E2 0%, #7ED321 100%);
    border: none;
    border-radius: 25px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    min-width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.appointment_form .qu_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
    color: #fff;
}

/* Review Area Enhancement */
.reviewArea {
    padding: 40px;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    color: #fff;
    position: relative;
    z-index: 3;
}

.reviewArea .secTitle {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.reviewArea .secDesc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.reviewArea .cusRating {
    margin: 20px 0;
}

.reviewArea .cusRating i {
    color: #ffc107;
    font-size: 20px;
    margin-right: 3px;
}

.reviewArea .customers {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 30px 0;
}

.reviewArea .customers span {
    color: #4A90E2;
    font-weight: 600;
}

/* Skill bars in review area */
.reviewArea .single_skill {
    margin: 20px 0;
}

.reviewArea .single_skill p {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.reviewArea .ss_parent {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    height: 8px;
    position: relative;
    overflow: hidden;
}

.reviewArea .ss_child {
    background: linear-gradient(90deg, #4A90E2, #7ED321);
    height: 100%;
    border-radius: 25px;
    transition: width 2s ease-in-out;
}

.reviewArea .ss_parent span {
    position: absolute;
    right: 0;
    top: -25px;
    color: #4A90E2;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive adjustments for form section */
@media (max-width: 1199px) {
    .appointment_form,
    .reviewArea {
        padding: 30px;
    }
    
    .appointment_form h3 {
        font-size: 28px;
    }
    
    .reviewArea .secTitle {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .appointment_form,
    .reviewArea {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .appointment_form h3 {
        font-size: 26px;
    }
    
    .reviewArea .secTitle {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .appointment_form,
    .reviewArea {
        padding: 20px;
    }
    
    .appointment_form h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .reviewArea .secTitle {
        font-size: 26px;
    }
    
    .appointment_form .input-field input,
    .appointment_form .input-field select {
        height: 50px;
        padding: 12px 20px;
    }
    
    .appointment_form .qu_btn {
        height: 55px;
        padding: 15px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .appointment_form,
    .reviewArea {
        padding: 15px;
    }
    
    .appointment_form h3 {
        font-size: 22px;
    }
    
    .reviewArea .secTitle {
        font-size: 24px;
    }
}

/* ===========================================
   Contact Form Message Styling
   =========================================== */

.con_message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.con_message.success {
    background: rgba(126, 211, 33, 0.1);
    color: #7ED321;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.con_message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Loading state for form submission */
.appointment_form.loading .qu_btn {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.appointment_form.loading .qu_btn:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}