/* Responsive Styles */

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%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");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Subscription form responsive styles */
.subscription-section {
    position: relative;
    overflow: hidden;
}

#subscriptionFeedback .alert {
    margin-top: 0.5rem;
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .hero-section, .video-hero {
        min-height: 500px;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-section h1, .video-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p, .video-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .video-background video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .hero-content {
        padding-top: 60px;
        z-index: 2;
        position: relative;
    }
    
    .subscription-section h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .subscription-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .subscription-form .form-control-lg,
    .subscription-form .btn-lg {
        font-size: 0.95rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section, .video-hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }
    
    .video-background video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-box, .testimonial-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-box, .testimonial-card {
        padding: 1.2rem;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .subscription-section {
        text-align: center;
    }
    
    .subscription-form {
        margin-top: 20px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h4:after, .footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 80px 0 50px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-image-container {
        margin-top: 30px;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .feature-box, .testimonial-card {
        padding: 1rem;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .subscription-section {
        text-align: center;
    }
    
    .subscription-section h2 {
        font-size: 1.6rem;
    }
    
    .subscription-form {
        margin-top: 20px;
    }
    
    .enquiry-form-container {
        padding: 15px;
    }
    
    .footer {
        text-align: center;
        padding: 40px 0;
    }
    
    .footer h4, .footer h5 {
        font-size: 1.2rem;
        margin-top: 20px;
    }
    
    .footer h4:after, .footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}