/* Basecamp Contact Design System */

:root {
    --slate: #2F3E46;
    --burnt-orange: #E85D04;
    --cream: #F8F9FA;
    --dark-bg: #111111;
    --serif-font: 'Playfair Display', serif;
    --mono-font: 'Courier Prime', monospace;
}

body.contact-page {
    background-color: var(--dark-bg);
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

.split-viewport {
    display: flex;
    height: 100vh;
}

/* Left Section: Moody Landscape */
.split-left {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dispatch-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
}

.dispatch-info {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    color: white;
    max-width: 400px;
}

.dispatch-label {
    font-family: var(--mono-font);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--burnt-orange);
}

.dispatch-info hr {
    opacity: 0.2;
    margin: 15px 0;
}

/* Right Section: Form */
.split-right {
    flex: 1;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 550px;
}

.postcard-form {
    background: white;
    padding: 50px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #ddd;
    border-right: 2px solid #ddd;
}

.postcard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--slate);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.postcard-title {
    font-family: var(--serif-font);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--slate);
    margin: 0;
}

.postcard-stamp {
    width: 80px;
    height: 100px;
    border: 3px dashed var(--burnt-orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--burnt-orange);
    font-family: var(--mono-font);
    font-weight: 700;
}

.postcard-stamp i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.postcard-stamp span {
    font-size: 0.6rem;
}

/* Postcard Inputs */
.form-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.prefix,
.suffix {
    font-family: var(--serif-font);
    font-size: 1.1rem;
    color: #666;
}

.postcard-input,
.postcard-textarea {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: var(--serif-font);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--burnt-orange);
    padding: 5px 10px;
    flex-grow: 1;
    min-width: 150px;
}

.postcard-input:focus,
.postcard-textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--burnt-orange);
}

.postcard-textarea {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #eee;
    padding: 15px;
}

.btn-dispatch {
    background: var(--slate);
    color: white;
    border: none;
    padding: 18px;
    font-family: var(--mono-font);
    font-weight: 700;
    letter-spacing: 3px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-dispatch:hover {
    background: var(--burnt-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(232, 93, 4, 0.3);
}

.back-link {
    color: var(--slate);
    font-family: var(--mono-font);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:hover {
    color: var(--burnt-orange);
}

/* Responsive Adjustments */

/* Handle short viewports (like small laptops or tablets in landscape) */
@media screen and (max-height: 700px) and (min-width: 992px) {
    body.contact-page {
        overflow-y: auto;
        height: auto;
    }

    .split-viewport {
        height: auto;
        min-height: 100vh;
    }

    .split-left {
        min-height: 600px;
    }
}

@media screen and (max-width: 1200px) and (min-width: 992px) {
    .split-left {
        flex: 0 0 40%;
    }

    .split-right {
        flex: 0 0 60%;
    }
}

@media screen and (max-width: 991px) {
    body.contact-page {
        height: auto;
        overflow: visible;
    }

    .split-viewport {
        flex-direction: column;
        height: auto;
    }

    .split-left {
        height: 350px;
        min-height: 350px;
    }

    .dispatch-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .dispatch-info {
        padding: 15px;
        max-width: 100%;
    }

    .split-right {
        padding: 40px 20px;
    }

    .form-container {
        max-width: 100%;
    }

    .postcard-form {
        padding: 30px 20px;
    }

    .postcard-title {
        font-size: 1.5rem;
    }

    .postcard-stamp {
        width: 60px;
        height: 80px;
    }

    .back-link {
        display: block;
        text-align: center;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .postcard-title {
        font-size: 1.2rem;
    }

    .prefix,
    .suffix {
        font-size: 1rem;
    }

    .postcard-input {
        font-size: 1rem;
        min-width: 100px;
    }

    .btn-dispatch {
        padding: 15px;
        letter-spacing: 1px;
        font-size: 0.9rem;
    }

    .postcard-stamp {
        display: none;
        /* Hide stamp on very small screens to save space */
    }

    .postcard-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
}