/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #031427;
}

/* Default Background for all 3 files */
body {
    background-image: url('image/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kiosk Main Container - Fixed Aspect Ratio / Scaled Container for iPad Air */
.kiosk-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    padding-bottom: 8vh;
    padding-left: 5vw;
    padding-right: 5vw;
    text-align: center;
}

/* Logo Image */
.logo-container {
    width: 44vw;
    max-width: 650px;
    margin-bottom: 5vh;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Headline Image */
.headline-container {
    width: 62vw;
    max-width: 900px;
    margin-bottom: 5vh;
}

.headline-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Locations Text Image */
.locations-container {
    width: 58vw;
    max-width: 850px;
    margin-bottom: 12vh;
}

.locations-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Action Area (White Box & Tap Button) */
.action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brochure-card {
    background-color: #ffffff;
    border-radius: 36px;
    padding: 42px 40px 38px 40px;
    width: 62vw;
    max-width: 780px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.brochure-card-text {
    color: #102574;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.01em;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tap-btn-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b2093;
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 20px 48px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(11, 32, 147, 0.35);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.tap-btn-blue:hover, .tap-btn-blue:focus {
    transform: scale(1.03);
    background-color: #0d27b5;
    box-shadow: 0 10px 30px rgba(11, 32, 147, 0.45);
}

.tap-btn-blue:active {
    transform: scale(0.97);
    background-color: #081873;
}

/* ==========================================================================
   Form Page Styles (form.html)
   ========================================================================== */
.form-container {
    width: 62vw;
    max-width: 820px;
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input Wrapper & Text Boxes */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 3.2vh;
}

.form-input {
    width: 100%;
    height: 76px;
    padding: 0 32px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #122144;
    background: rgba(255, 255, 255, 0.95);
    border: 3.5px solid #00c7fe;
    border-radius: 14px;
    outline: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: #3b4c7a;
    font-weight: 600;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.form-input:focus {
    background: #ffffff;
    border-color: #0088ff;
    box-shadow: 0 8px 30px rgba(0, 136, 255, 0.35);
}

/* Validation Error Inside the Text Box (Hides placeholder & typed text, shows red error from left) */
.input-wrapper.has-error .form-input {
    border-color: #e62e45;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(230, 46, 69, 0.4);
    color: transparent;
}

.input-wrapper.has-error .form-input::placeholder {
    opacity: 0;
    color: transparent;
}

.error-msg-inside {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #e62e45;
    font-size: 1.35rem;
    font-weight: 600;
    pointer-events: none;
    display: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.input-wrapper.has-error .error-msg-inside {
    display: block;
    animation: fadeInError 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Submit Button Wrapper */
.submit-btn-wrapper {
    width: 100%;
    margin-top: 1.5vh;
}

.submit-btn-link {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: block;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.submit-btn-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 100, 220, 0.35));
}

.submit-btn-link:hover, .submit-btn-link:focus {
    transform: scale(1.03);
    filter: brightness(1.08);
}

.submit-btn-link:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

/* ==========================================================================
   Thank You Page Styles (thankyou.html)
   ========================================================================== */
.thankyou-container {
    width: 64vw;
    max-width: 860px;
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.thankyou-img-wrapper {
    width: 64vw;
    max-width: 860px;
    margin-bottom: 4vh;
}

.thankyou-img {
    width: 100%;
    height: auto;
    display: block;
}

.thankyou-msg {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6vh;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.01em;
}

.thankyou-msg p {
    margin: 4px 0;
}

.thankyou-msg strong {
    font-weight: 700;
    color: #ffffff;
}

.back-btn-wrapper {
    width: 40vw;
    max-width: 580px;
}

.back-btn-link {
    display: block;
    width: 100%;
    text-decoration: none;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    cursor: pointer;
}

.back-btn-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 100, 220, 0.35));
}

.back-btn-link:hover, .back-btn-link:focus {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.back-btn-link:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

/* Optimized CSS target queries for iPad Air 11-inch & 13-inch Portrait resolutions */
@media screen and (min-width: 1000px) and (max-width: 2100px) {
    .kiosk-container {
        padding-top: 11vh;
    }
    
    .logo-container {
        width: 43.5vw;
    }

    .headline-container {
        width: 62vw;
    }

    .locations-container {
        width: 59vw;
    }

    .brochure-card {
        width: 62vw;
        padding: 46px 44px 40px 44px;
        border-radius: 38px;
    }

    .brochure-card-text {
        font-size: 2.4rem;
        margin-bottom: 32px;
    }

    .tap-btn-blue {
        font-size: 2rem;
        padding: 22px 52px;
        border-radius: 18px;
    }

    .form-container {
        width: 62vw;
    }

    .form-input {
        height: 80px;
        font-size: 1.5rem;
        border-radius: 16px;
    }

    .form-input::placeholder {
        font-size: 1.6rem;
        font-style: italic;
    }

    .error-msg-inside {
        font-size: 1.4rem;
        left: 36px;
    }

    .thankyou-container {
        width: 64vw;
    }

    .thankyou-img-wrapper {
        width: 64vw;
    }

    .thankyou-msg {
        font-size: 2rem;
    }

    .back-btn-wrapper {
        width: 42vw;
    }
}
