/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Oswald:wght@400;700&family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&display=swap');

/* Reset & General Styling */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #2a3e59;
    line-height: 1.7;
}

h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 700; }

img { max-width: 100%; display: block; }

/* Header & Navigation */
header, footer { background: url('../assets/images/bg.png') no-repeat center/cover; color: white; }

header {
    padding: 15px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-container { display: flex; align-items: center; gap: 15px; }

.logo { width: 60px; }

.company-name { 
    font-size: 1.8rem; 
    font-family: "Bad Script", cursive;
    font-weight: 400;
    font-style: normal;
    margin-top: 35px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 25px; }

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover { background-color: #4d7dbf; }

/* Hamburger Menu */
.hamburger-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 35px;
    right: 20px;
}
/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 5px; 
    border-bottom-right-radius: 5px;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 63, 124, 0.35); /* color overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    animation: fadeInDown 1s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 15px;
    animation: fadeInUp 1s ease-in-out;
}

/* Sections */
section {
    padding: 60px 10%;
    margin-bottom: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

h1, h2 { margin-bottom: 20px; }

p { margin-bottom: 25px; line-height: 1.7; }

/* Contact Form */
form {
    max-width: 600px;
    margin-top: 30px;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus { border-color: #193e6d; }

form button {
    color: #fff;
    background: #193e6d;
    padding: 12px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

form button:hover { background: #4d7dbf; }

.testimonials {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonial {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
    transform: scale(1.05);
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: #2a3e59;
}

.testimonial strong {
    font-weight: bold;
    color: #193e6d;
}

/* Booking Section Wrapper */
.booking-section {
    padding: 60px 10%;
    background-color: #f9f9f9;
}

.booking-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #193e6d;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: auto;
    font-family: 'Montserrat', sans-serif;
}

.booking-form fieldset {
    border: none;
    margin-bottom: 30px;
    padding: 0;
}

.booking-form legend {
    font-size: 1.4rem;
    font-weight: 700;
    color: #193e6d;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.booking-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #2a3e59;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    border-color: #193e6d;
    outline: none;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.booking-form textarea {
    resize: vertical;
}

/* Submit Button */
.booking-form button {
    background-color: #193e6d;
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.booking-form button:hover {
    background-color: #4d7dbf;
    transform: scale(1.05);
}

/* Info Boxes */
.confirmation-details,
.info {
    background: #eaf1fb;
    padding: 25px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 800px;
}

.confirmation-details h3,
.info h3 {
    color: #193e6d;
    margin-bottom: 15px;
}

.confirmation-details p,
.info p,
.info ul {
    margin-bottom: 15px;
    color: #2a3e59;
}

.info ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* تنظيم شكل الـ checkbox-group والراديو بشكل مرتب */
.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5fb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #2a3e59;
    transition: background-color 0.2s ease-in-out;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background-color: #e3edf9;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #193e6d;
    width: 16px;
    height: 16px;
}

.hint {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
  }
  
  #submitBtn {
    display: none;
    opacity: 0.6;
    background-color: #388e3c;
    transition: opacity 0.3s ease;
    cursor: not-allowed;
  }
  #submitBtn.visible {
    display: inline-block;
    opacity: 1;
    cursor: pointer;
  }
  

  #submitBtn:hover {
    background-color: #2e7d32;
  }

  #estimatedPrice {
    word-wrap: break-word;
    font-size: 1rem;
}

#estimatedPrice span {
    display: inline;
    white-space: normal;
    word-break: break-word;
  }

  
/* Footer */
footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
}

footer::after {
    content: "© 2025 Touch Clean Services | All Rights Reserved.";
    display: block;
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Social Media Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease-in-out, 0.3s ease-in-out;
    text-decoration: none;
}

.social-links img { width: 24px; transition: transform 0.3s ease-in-out; }

.social-links a:hover { background: #4d7dbf; transform: scale(1.1); }

/* Buttons */
.btn, .book-service-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #4d7dbf;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease, transform 0.2s ease-in-out;
}

.btn:hover, .book-service-btn:hover { background: #193e6d; transform: scale(1.05); }

/* Responsive Design */
@media (max-width: 690px) {
    .hamburger-icon { display: block; }
    .company-name { font-size: 1.5rem; margin-top: 30px;}
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #193e6d;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active { display: flex; animation: fadeInDown 0.5s; }

    .hero { padding: 60px 5%; }

    .hero h1 { font-size: 2rem; }
}

@media (min-width: 690px) and (max-width: 1024px) {
    header { padding: 15px 5%; }
    .hero { padding: 80px 5%; }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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