/* ===================== Reset & Base ===================== */
@import "tailwindcss";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

.bigIcon { width: 4rem; }
.mediumIcon { width: 3rem; }
.smallIcon { width: 2rem; }

/* ===================== Header ===================== */
.headerContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 2px solid #2c5530;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0 auto;
    width: 100%;
}

.leftHeader {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo img {
    width: 5rem;
    height: 5rem;
}

.logo h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #2c5530;
}

/* Center Navigation */
.centerNav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navLink {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.03em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.navLink:hover {
    color: #1a3d1f;
    border-bottom-color: #2c5530;
    background: transparent;
}

.navLink.active {
    color: #1a3d1f;
    border-bottom-color: #2c5530;
    background: transparent;
}

.rightHeader {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.headerAction {
    gap: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.headerAction p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c5530;
}

/* ===================== Main Content ===================== */
main {
    min-height: calc(100vh - 30rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

/* ===================== Booking Form ===================== */
:root {
    --btn-green: #234f2e;
    --btn-green-hover: #1d4226;
    --btn-green-active: #17361f;
}

/* Form Groups */
.contact-form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.contact-form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1.6rem;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    height: 5rem;
    padding: 1rem;
    border: 0.2rem solid #ddd;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    color: #333;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #999;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 0.3rem rgba(44, 85, 48, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 12rem;
}

.contact-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 4rem;
}

/* Date and Time inputs */
.contact-form-group input[type="date"],
.contact-form-group input[type="time"] {
    cursor: pointer;
}

/* Time dropdown specific styling */
#booking_time {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 4rem;
}

#booking_time:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

#booking_time option {
    padding: 1.2rem;
    font-size: 1.4rem;
}

/* Time helper text */
#timeHelper {
    display: block;
    margin-top: 0.8rem;
    color: #059669;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Time slot states */
.time-loading {
    color: #6b7280;
    font-style: italic;
}

.no-times-available {
    color: #ef4444;
    font-weight: 600;
}

/* Captcha Section */
.captcha-section {
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Submit Button */
button[type="submit"],
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 4rem;
    height: auto;
    width: 100%;
    min-height: 5.4rem;
    background: var(--btn-green);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.1rem;
    font-size: 1.6rem;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.8rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

button[type="submit"]:hover,
.contact-submit-btn:hover {
    background: var(--btn-green-hover);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 0.8rem rgba(44, 85, 48, 0.3);
}

button[type="submit"]:active,
.contact-submit-btn:active {
    background: var(--btn-green-active);
    transform: translateY(0);
}

button[type="submit"]:disabled,
.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error Messages */
.contact-error-message {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    display: none;
}

/* Success Message */
.contact-success-message {
    background: #27ae60;
    color: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
    display: none;
    text-align: center;
    font-size: 1.4rem;
}

/* Loading Animation */
.contact-loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.2rem solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: contactSpin 1s ease-in-out infinite;
    margin-right: 1rem;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .centerNav {
        gap: 1.5rem;
    }

    .navLink {
        font-size: 15px;
    }

    .rightHeader {
        gap: 2rem;
    }

    main {
        padding: 5rem 2rem;
    }

    .contact-form-group label {
        font-size: 1.5rem;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        font-size: 1.5rem;
    }

    button[type="submit"],
    .contact-submit-btn {
        font-size: 1.5rem;
        padding: 1.6rem 3rem;
        min-height: 5rem;
    }
}

@media (max-width: 768px) {
    .headerContainer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .centerNav {
        gap: 1rem;
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid #efe3b8;
    }

    .navLink {
        font-size: 14px;
    }

    .rightHeader {
        gap: 15px;
    }

    .headerAction p {
        font-size: 14px;
    }

    main {
        padding: 4rem 1.5rem;
        min-height: calc(100vh - 20rem);
    }

    .contact-form-group {
        margin-bottom: 2rem;
    }

    .contact-form-group label {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        padding: 1.2rem;
        font-size: 1.4rem;
        border-width: 0.15rem;
    }

    .contact-form-group textarea {
        min-height: 10rem;
    }

    #timeHelper {
        font-size: 1.1rem;
    }

    .captcha-section {
        margin: 2.5rem 0;
    }

    button[type="submit"],
    .contact-submit-btn {
        padding: 1.5rem 3rem;
        font-size: 1.4rem;
        min-height: 4.8rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 3.5rem;
        height: 3.5rem;
    }

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

    .rightHeader {
        gap: 10px;
    }

    .headerAction p {
        font-size: 14px;
    }

    .headerAction {
        gap: 0.3rem;
    }

    main {
        padding: 3rem 1rem;
        min-height: calc(100vh - 15rem);
    }

    .contact-form-group {
        margin-bottom: 1.8rem;
    }

    .contact-form-group label {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        font-size: 1.3rem;
        padding: 1.1rem;
        border-radius: 0.6rem;
    }

    .contact-form-group select {
        background-position: right 1rem center;
        padding-right: 3rem;
    }

    #booking_time {
        background-position: right 1rem center;
        padding-right: 3rem;
    }

    .contact-form-group textarea {
        min-height: 8rem;
    }

    #timeHelper {
        font-size: 1rem;
    }

    .captcha-section {
        margin: 2rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cf-turnstile {
        transform: scale(0.9);
        transform-origin: center;
    }

    button[type="submit"],
    .contact-submit-btn {
        font-size: 1.3rem;
        padding: 1.4rem 2rem;
        min-height: 4.6rem;
        letter-spacing: 0.08rem;
    }

    button[type="submit"]:hover,
    .contact-submit-btn:hover {
        transform: none;
    }

    .contact-loading {
        width: 1.6rem;
        height: 1.6rem;
        margin-right: 0.8rem;
    }
}

/* Very Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    main {
        padding: 2.5rem 0.8rem;
    }

    .contact-form-group label {
        font-size: 1.2rem;
    }

    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        font-size: 1.2rem;
        padding: 1rem;
    }

    #timeHelper {
        font-size: 0.9rem;
    }

    button[type="submit"],
    .contact-submit-btn {
        font-size: 1.2rem;
        padding: 1.3rem 1.8rem;
    }

    .cf-turnstile {
        transform: scale(0.85);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    main {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .contact-form-group {
        margin-bottom: 1.5rem;
    }

    .contact-form-group textarea {
        min-height: 8rem;
    }
}