@font-face {
    font-family: 'hlvI-R';
    src: url('../font/hlvI-R.woff2') format('woff2'),
         url('../font/hlvI-R.woff') format('woff'),
         url('../font/hlvI-R.ttf') format('truetype'),
         url('../font/hlvI-R.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Sticky Footer */
html, body {
    height: 100%;
    background-color: #dbeef0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > div {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

.bg-blue-section {
    position: relative;
}

.bg-blue-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1d96f9;
    z-index: -1;
    border-radius: 0.5rem;
}
h1 span {
    display: block;
}

@media (max-width: 600px) {

    h1, h1 span {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h1 span {
        display: inline;
    }
}

/* Star Rating System */
.stars {
    /* display: inline-flex; */
    align-items: center;
    position: relative;
    user-select: none;
    padding: 0.25rem 0;
}

.star-inputs {
    display: flex;
    flex-direction: row-reverse;
}
.star-inputs label {
    font-size: 60px;
}
.star-label {
    color: #d1d5db; /* default gray color */
    transition: color 0.3s ease;
}

.star-label:hover,
.star-label:hover ~ .star-label,
input:checked ~ .star-label {
    color: #fbbf24; /* yellow color for active stars */
}

/* Form animations */
.review-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.review-step.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.review-step.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.review-step.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Flatpickr customization */
.flatpickr-calendar {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #1d96f9;
    border-color: #1d96f9;
}

/* Custom media queries for responsive layout */
@media (max-width: 768px) {
    .stars {
        transform: scale(0.9);
    }
}

@media (max-width: 640px) {
    .stars {
        transform: scale(0.8);
    }
}

/* Form validation styling */
.input-error {
    border-color: #ef4444 !important;
}

.input-error:focus {
    outline: none;
    --tw-ring-color: #ef4444 !important;
}

.g-recaptcha {
    display: inline-block;
}

@media (max-width: 340px) {
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: 0 0;
    }
}

/* Responsive background images */
.responsive-bg {
    background-image: url('../img/bg1.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    height: auto;
}

@media (max-width: 600px) {
    .responsive-bg {
        background-image: url('../img/bg2.jpg');
    }
}