/* SUPER RAW HTML AESTHETIC */

html,
body {
    background-color: #FFFFFF;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    /* Explicitly set size to 16px so browsers don't use different defaults */
    margin: 0;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    /* Prevents Safari from inflating font sizes on mobile */
    text-size-adjust: 100%;
}

header {
    position: absolute;
    top: 30px;
    /* Reduced 2x from 60px */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
}

a {
    color: #0000EE;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    /* Forces unbroken underline across descenders like the 'g' in Booking */
    -webkit-text-decoration-skip: none;
    /* Safari specific fallback for the descender line gap */
}

a:visited {
    color: #551A8B;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
}

.logo {
    display: inline-block;
    width: 368px;
    height: 368px;
    margin: 0 auto;
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* RAW CONTENT BLOCKS */
.raw-content {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to allow precise gap control */
    align-items: center;
    text-align: center;
    padding: 440px 20px 20px 20px;
    /* Increased from 380px to accommodate larger logo + gap */
    box-sizing: border-box;
}

.raw-content p {
    margin-bottom: 15px;
}

.landing-links {
    font-size: 28px;
    line-height: 2;
    margin-bottom: 15px;
}

.bold-heading {
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;
}

.contact-details {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.location-text {
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px;
    animation: terminal-blink 0.5s step-end infinite;
}

.cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 0;
    color: #000;
    text-decoration: none;
    display: inline-block;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes terminal-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* GALLERY GRID */
.gallery-main {
    width: 100%;
    padding-top: 440px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    color: #FFFFFF;
    font-size: 18px;
    margin-top: 15px;
}

/* Form Container */
.tally-form-container {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        top: 10px;
        /* Reduced 2x from 20px */
    }

    .logo {
        width: 230px;
        height: 230px;
    }

    .logo img {
        width: 100%;
        height: 100%;
    }

    .landing-links {
        font-size: 24px;
    }

    .contact-details {
        font-size: 14px;
    }

    .location-text {
        font-size: 24px;
    }

    .raw-content {
        padding: 260px 15px 15px 15px;
        /* Adjusted from 230px to accommodate larger mobile logo */
    }

    .gallery-main {
        padding-top: 260px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BOOKING PAGE: RETROWAVE / WIN95 FORM
   ========================================= */

.retrowave-bg {
    background: linear-gradient(180deg, #1A0033 0%, #C80066 100%) !important;
    background-attachment: fixed !important;
    color: #FFFFFF !important;
}

.retrowave-bg header a {
    filter: invert(1);
}

.retrowave-bg .logo img {
    filter: invert(1);
    /* Ensure logo is visible on dark bg */
}

.retrowave-bg .bold-heading {
    color: #00FFFF !important;
    text-shadow: 2px 2px 0px #FF00FF;
}

.booking-paper {
    background-color: #C0C0C0;
    /* Win95 gray */
    color: #000000;
    width: 100%;
    max-width: 15.75cm;
    margin: 20px auto;
    padding: 30px;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    padding-top: 40px;
    /* Space for faux title bar */
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
}

.booking-paper::before {
    content: "Booking Form";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 25px;
    background-color: #000080;
    /* Win95 Deep Blue */
    color: #FFFFFF;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 25px;
    padding-left: 5px;
}

.xp-form fieldset {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #C0C0C0;
}

.xp-form legend {
    font-weight: bold;
    padding: 0 5px;
    color: #E6196E;
    /* Retrowave pink */
    text-shadow: 1px 1px 0px #FFFFFF;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    flex: 0 0 150px;
    font-weight: bold;
    color: #000080;
    /* Blue labels */
}

.form-column {
    flex-direction: column;
    align-items: flex-start;
}

.form-column label {
    flex: none;
    margin-bottom: 5px;
    width: 100%;
    display: block;
}

.underlined-label {
    text-decoration: underline;
}

.xp-input {
    flex: 1;
    min-width: 0;
    padding: 5px;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    background-color: #FFFFFF;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    margin: 0;
}

select.xp-input {
    padding-right: 30px;
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.xp-select-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    width: 100%;
}

.xp-select-wrapper::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 20px;
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h10L5 6 0 0z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.xp-select-wrapper:active::after {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    padding-top: 1px;
}

.phone-input-container {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    background-color: #FFFFFF;
    box-sizing: border-box;
}

.phone-input-container:focus-within {
    outline: 1px dotted #000000;
}

.phone-input-container .xp-input {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 5px;
}

.phone-input-container .xp-input:focus {
    outline: none;
}

.phone-cc {
    flex: 0 0 50px !important;
    text-align: center;
    padding-left: 2px !important;
    padding-right: 2px !important;
    border-right: 1px dotted #808080 !important;
    margin-right: 5px;
}

.phone-plus {
    font-weight: bold;
    font-size: 16px;
    padding-left: 5px;
    color: #E6196E;
}

.xp-input:focus {
    outline: 1px dotted #000000;
}

textarea.xp-input {
    resize: none;
    height: 200px;
    width: 100%;
    display: block;
}

/* Radio Button Layouts */
.radio-group-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.radio-section {
    flex: 1;
}

.radio-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-decoration: underline;
    color: #000080;
}

.radio-section label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: bold;
}

.radio-section input[type="radio"] {
    margin-right: 8px;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #000080;
}

.xp-file-input {
    margin-top: 5px;
}

/* Custom Attachment Row Styles */
.attachment-row {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

.file-list-container {
    margin-top: 10px;
    padding-left: 150px;
}

.file-item {
    color: #000080;
    font-family: inherit;
    margin-bottom: 5px;
    word-break: break-all;
    display: block;
    text-decoration: underline;
}

/* Form Actions / Buttons */
.form-actions {
    text-align: right;
    margin-top: 20px;
}

.xp-button {
    background-color: #C0C0C0;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 5px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #000000;
    margin-left: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.xp-button:active {
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    padding: 6px 19px 4px 21px;
}

/* Responsive constraints for the form */
@media (max-width: 600px) {
    .booking-paper {
        padding: 15px;
        padding-top: 35px;
        border: 2px solid #000000;
        /* simplified for mobile */
        box-shadow: none;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .form-row label {
        flex: none;
        width: 100%;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .form-column {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-column label {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }

    .radio-group-container {
        flex-direction: column;
    }
}

/* =========================================
   BIO PAGE STYLES
   ========================================= */

.bio-page {
    padding-top: 440px;
    /* Adjusted for larger logo */
    padding-bottom: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.bio-photo-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px auto;
    border: 2px solid #000;
    overflow: hidden;
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-story {
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 18px;
    text-align: center;
    padding: 0 20px;
}

.bio-gallery {
    width: 100%;
    margin-bottom: 40px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-slide {
    width: 320px;
    aspect-ratio: 4 / 3;
    border: 1px solid #000;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    background: #FFFFFF;
    border: 1px solid #000;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    font-family: inherit;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: #000;
    color: #FFF;
}

.inquiry-cta {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: bold;
}

.cta-link {
    color: #E6196E;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .bio-photo-container {
        width: 180px;
        height: 180px;
    }

    .carousel-slide {
        width: 225px;
        aspect-ratio: 4 / 3;
    }

    .carousel-container {
        gap: 10px;
    }

    .bio-story {
        font-size: 16px;
    }
}