@font-face {
    font-family: 'Afrah';
    src: url('Afrah-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Better mobile viewport handling */
    height: -webkit-fill-available;
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
}

body {
    font-family: 'Afrah', serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-image: url('SellersStudio-ScriptLogo-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobile-specific background */
@media (max-width: 768px) {
    body {
        background-image: url('phone-1.png');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: adjust container to use available height */
@media (max-width: 768px) {
    .container {
        height: 100dvh; /* Use dynamic viewport height on mobile */
        min-height: -webkit-fill-available;
        padding: 2rem 1rem;
    }
}

.container.slide-left {
    transform: translateX(-100%);
}

.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .content {
        gap: 1.2rem;
        width: 100%;
        max-width: 90%;
        transform: translateY(-5%);
    }
}

@media (max-width: 480px) {
    .content {
        gap: 1rem;
        transform: translateY(-8%);
    }
}

.logo {
    width: 400px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 1rem;
}

.main-heading {
    font-family: 'Afrah', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgb(63, 46, 30);
    text-transform: uppercase;
    margin: 0;
}

.subheading {
    font-family: 'Afrah', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgb(63, 46, 30);
    text-transform: uppercase;
    margin-top: 1rem;
}

.subheading-link {
    font-family: 'Afrah', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgb(63, 46, 30);
    text-transform: uppercase;
    margin-top: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.subheading-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(63, 46, 30);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subheading-link:hover::after {
    opacity: 1;
}

.back-home-link {
    font-family: 'Afrah', serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgb(63, 46, 30);
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    border: 2px solid rgb(63, 46, 30);
    transition: all 0.3s ease;
}

.back-home-link:hover {
    background-color: rgb(63, 46, 30);
    color: #f5f1e8;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        width: 240px;
        margin-bottom: 0.5rem;
    }
    
    .main-heading {
        font-size: 1.7rem;
        letter-spacing: 0.12em;
        line-height: 1.2;
    }
    
    .subheading {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }
    
    .subheading-link {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
        padding-bottom: 0.35rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 200px;
        margin-bottom: 0.35rem;
    }
    
    .main-heading {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
        line-height: 1.2;
    }
    
    .subheading {
        font-size: 0.95rem;
        letter-spacing: 0.14em;
    }
    
    .subheading-link {
        font-size: 0.95rem;
        letter-spacing: 0.14em;
        padding-bottom: 0.3rem;
    }
}

/* Inquiry Panel Styles */
.inquiry-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 100;
}

/* Mobile: use dynamic viewport height and ensure scrolling */
@media (max-width: 768px) {
    .inquiry-panel {
        height: 100dvh;
        min-height: -webkit-fill-available;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

.inquiry-panel.active {
    transform: translateX(0);
}

.inquiry-panel-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

/* Mobile: ensure proper spacing with browser chrome */
@media (max-width: 768px) {
    .inquiry-panel-content {
        min-height: 100dvh;
        padding: 1.5rem 1.5rem 3rem;
    }
}

.back-link {
    font-family: 'Afrah', serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgb(63, 46, 30);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.form-group label {
    font-family: 'Afrah', serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: rgb(63, 46, 30);
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    font-family: 'Afrah', serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.4rem 0;
    border: none;
    border-bottom: 1px solid rgba(63, 46, 30, 0.6);
    background-color: transparent;
    color: rgb(63, 46, 30);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(63, 46, 30, 0.5);
    font-style: italic;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: rgb(63, 46, 30);
    border-bottom-width: 1.5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.form-group input[type="date"] {
    font-style: italic;
    color: rgba(63, 46, 30, 0.5);
}

.form-group input[type="date"]:focus,
.form-group input[type="date"]:valid {
    color: rgb(63, 46, 30);
    font-style: normal;
}

.form-group input[type="number"] {
    font-style: italic;
}

.form-group input[type="number"]:focus,
.form-group input[type="number"]:valid {
    font-style: normal;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L6 6L11 1" stroke="%233F2E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
    font-style: italic;
}

.form-group select:focus,
.form-group select:valid {
    font-style: normal;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Afrah', serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgb(63, 46, 30);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: rgb(63, 46, 30);
}

.checkbox-label {
    user-select: none;
}

.submit-button {
    font-family: 'Afrah', serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgb(63, 46, 30);
    background-color: transparent;
    text-transform: uppercase;
    padding: 0.7rem 2.25rem;
    border: 1.5px solid rgb(63, 46, 30);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: rgb(63, 46, 30);
    color: #f5f1e8;
}

@media (max-width: 768px) {
    .inquiry-panel-content {
        padding: 2rem 1.5rem 5rem;
    }
    
    .inquiry-form {
        gap: 1.5rem;
        padding-bottom: 3rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .back-link {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }
    
    .submit-button {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .inquiry-panel-content {
        padding: 1.5rem 1.25rem 6rem;
    }
    
    .inquiry-form {
        gap: 1.25rem;
        padding-bottom: 3.5rem;
    }
    
    .form-group {
        gap: 0.5rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.45rem 0;
    }
    
    .form-group label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    
    .checkbox-item {
        font-size: 0.85rem;
    }
    
    .submit-button {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.8rem 2rem;
        margin-top: 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .back-link {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
}

/* Standalone Inquiry Page Styles */
.inquiry-container {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    padding: 2rem;
}

.inquiry-content {
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .inquiry-container {
        min-height: 100dvh;
        padding: 2rem 1.5rem 5rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .inquiry-container {
        padding: 1.5rem 1.25rem 6rem;
    }
}
