/* ===== FONT IMPORTS ===== */
@font-face {
    font-family: 'Futura Extra Bold';
    src: url('fonts/Futura Extra Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura-Regular';
    src: url('fonts/Futura Bold.otf') format('truetype');
    font-weight: bold;
    font-style: bold;
    font-display: swap;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Futura-Regular', 'Arial', sans-serif;
    overflow-x: hidden;
    background: rgba(244, 241, 232, 0.85);
}

/* ===== HEADER STRIP ===== */
.header-strip {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    background: linear-gradient(145deg, 
        #faf7f0, 
        #f2ede0, 
        #ebe5d6);
    border-bottom: 2px solid rgba(200, 185, 160, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 25px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-strip::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, 
        #e8dcc8, 
        #ddd0bd,
        #d2c5b2);
    border-radius: 0;
    z-index: -1;
    filter: blur(1px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    height: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: black;
    overflow-y: auto;
    background: rgba(244, 241, 232, 0.85);
    padding: 12% 0 5px 0;
}

/* ===== VIDEO BACKGROUND ===== */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-slide.active {
    opacity: 1;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    opacity: 0.8;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    z-index: 20;
    max-width: 1200px;
    padding: 15px;
    animation: fadeInUp 1s ease-out;
    margin: 5px auto 0;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Desktop layout */
@media (min-width: 769px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .combined-section,
    .form-section {
        min-height: 100%;
    }
    
    .combined-section {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .form-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .hero-content {
        display: flex !important;
        flex-direction: column;
        max-width: 700px;
    }
    
    .combined-section {
        margin-bottom: 30px;
        height: auto !important;
    }
    
    .form-section {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        height: auto !important;
        display: block !important;
    }
}

/* ===== SHARED BOX STYLES ===== */
.headlines-box,
.subtitle-box,
.subtitle-section,
.title-section,
.top-section {
    background: rgba(235, 229, 214, 0.85);
    border-radius: 15px;
    border: 3px solid #d4c4a8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.headlines-box::before,
.subtitle-box::before,
.subtitle-section::before,
.title-section::before,
.top-section::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: rgba(201, 184, 150, 0.85);
    border-radius: 18px;
    z-index: -1;
}

/* ===== INDIVIDUAL BOX STYLES ===== */
.headlines-box {
    padding: 20px;
    margin-bottom: 15px;
}

.subtitle-box {
    padding: 15px 25px;
    margin-bottom: 10px;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-section {
    padding: 15px 25px;
    margin-bottom: 15px;
    text-align: center;
    width: 70%;
}

.title-section {
    padding: 25px 35px;
    margin-bottom: 0;
    text-align: center;
    width: 120%;
}

.combined-section {
    background: linear-gradient(145deg, 
        #faf7f0, 
        #f2ede0, 
        #ebe5d6);
    border-radius: 15px;
    border: 2px solid rgba(200, 185, 160, 0.6);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 25px 30px;
    margin-bottom: 0px;
    text-align: center;
    flex: 1 1 0;
    box-sizing: border-box;
    transform: translateY(-4px);
}

.combined-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, 
        #e8dcc8, 
        #ddd0bd,
        #d2c5b2);
    border-radius: 17px;
    z-index: -1;
    filter: blur(1px);
}

.combined-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(180, 165, 140, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(180, 165, 140, 0.02) 1px, transparent 1px),
        linear-gradient(45deg, transparent 49%, rgba(180, 165, 140, 0.008) 50%, transparent 51%);
    background-size: 30px 30px, 60px 60px, 8px 8px;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.combined-section .hero-subtitle {
    margin: 0 0 12px 0 !important;
    text-align: left;
    color: rgba(0, 0, 0, 0.7);
    padding: 0 !important;
}

.combined-section .hero-subtitle:first-child {
    margin: 0 0 12px 0 !important;
}

.combined-section .hero-subtitle:last-child {
    margin: 12px 0 0 0 !important;
}

.combined-section .main-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    word-break: keep-all;
    hyphens: none;
    white-space: normal;
    text-align: left;
    color: rgba(0, 0, 0, 0.8);
}

.form-section {
    padding: 30px;
    flex: 1 1 0;
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    box-sizing: border-box;
}

/* ===== TYPOGRAPHY ===== */
.hero-title {
    font-size: clamp(1.4rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.1;
    color: black;
    word-break: break-word;
    hyphens: auto;
}

.title-section .hero-title {
    font-size: clamp(0.9rem, 2.2vw, 1.6rem);
    word-break: keep-all;
    hyphens: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0;
    color: black;
    font-weight: 600;
    font-family: 'Futura-Regular', Arial, sans-serif;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
}

/* ===== LOGO HEADER ===== */
.logo-header {
    font-family: 'Futura Extra Bold', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: visible;
    flex-wrap: nowrap;
    margin: 0;
    font-size: 1.5rem;
}

.logo-header img {
    height: 1.3em;
    margin-right: 0.15em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.logo-header span {
    white-space: normal;
    word-break: keep-all;
    text-align: center;
}

/* ===== LAYOUT CONTAINERS ===== */
.headlines-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    margin: 0 auto 30px;
    position: relative;
}

/* ===== FORM STYLES ===== */
.form-header {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 1000;
    color: rgba(0, 0, 0, 0.7);
    text-align: left;
    margin-bottom: 25px;
    font-family: 'Futura-Regular', Arial, sans-serif;
    line-height: 1.3;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    row-gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.form-group {
    margin-bottom: 0;
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
}

.form-group.full-width {
    flex: 1 1 100%;
    margin-bottom: 25px;
}

.form-group.span-rows {
    grid-row: span 2;
}

.form-group.span-rows textarea {
    height: 100%;
    min-height: 140px;
    resize: vertical;
}

/* ===== FORM LABELS ===== */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-family: 'Futura-Regular', Arial, sans-serif;
    white-space: normal;
    word-break: break-word;
}

/* ===== FORM INPUTS ===== */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.8);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 400;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ===== PLACEHOLDER STYLES ===== */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* ===== SELECT DROPDOWN STYLES ===== */
.form-group select {
    color: rgba(0, 0, 0, 0.5);
}

.form-group select:invalid {
    color: rgba(0, 0, 0, 0.5);
}

.form-group select option[value=""] {
    color: rgba(0, 0, 0, 0.5);
}

.form-group select option:not([value=""]) {
    color: black;
}

/* ===== FORM INPUT FOCUS STATES ===== */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #a89575;
    background: rgba(250, 248, 244, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* ===== TEXTAREA SPECIFIC ===== */
.form-group textarea {
    resize: vertical;
    min-height: 65px;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: rgba(61, 61, 61, 0.85);
    color: #f4f1e8;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    font-weight: normal;
    font-family: 'Futura-Regular', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background: rgba(42, 42, 42, 0.85);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* ===== TABLET STYLES (768px and below) ===== */
@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
        padding: 20px;
    }
    
    .headlines-frame {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .top-section {
        width: 100%;
        padding: 20px 25px;
    }
    
    .title-section {
        width: 100%;
        padding: 20px 25px;
    }
    
    .form-section {
        width: 90%;
        max-width: 100%;
        padding: 25px;
        margin: 20px auto 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .form-group {
        width: 100%;
        min-width: 0;
    }
    
    .logo-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-header img {
        height: 1.2em;
    }
}

/* ===== MOBILE STYLES (480px and below) ===== */
@media (max-width: 480px) {
    .combined-section .hero-subtitle {
        margin: 0 0 30px 0 !important;
    }
    
    .combined-section .hero-subtitle:first-child {
        margin: 0 0 30px 0 !important;
    }
    
    .combined-section .hero-subtitle:last-child {
        margin: 30px 0 0 0 !important;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .hero-section {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        padding: 45px 0 max(40px, env(safe-area-inset-bottom, 40px)) 0;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .headlines-frame {
        margin-bottom: 15px;
    }
    
    .top-section {
        width: 100%;
        padding: 15px 20px;
    }
    
    .title-section {
        width: 100%;
        padding: 15px 20px;
    }
    
    .form-section {
        width: 95%;
        padding: 20px;
        margin: 15px auto 0;
    }
    
    .form-header {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .form-row {
        gap: 12px;
        width: 100%;
    }
    
    .form-group {
        width: 100%;
        min-width: 0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .logo-header {
        flex-direction: row;
        gap: 8px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .logo-header img {
        height: 2rem;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .logo-header span {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        line-height: 1.2;
        letter-spacing: 1px;
    }
    
    .video-slide video {
        filter: blur(6px);
        opacity: 0.6;
    }
}

/* ===== SIMPLE SCROLL FIX ===== */
@media (max-height: 800px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
        padding: 10px 0 20px 0;
        align-items: flex-start;
        justify-content: center;
    }
    
    .hero-content {
        position: relative;
        margin: 2px auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* ===== SMALL MOBILE STYLES (360px and below) ===== */
@media (max-width: 360px) {
    .hero-content {
        padding: 15px 10px;
        max-width: 98%;
    }
    
    .hero-section {
        height: auto;
        overflow-y: auto;
        padding: 45px 0 max(40px, env(safe-area-inset-bottom, 40px)) 0;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .top-section,
    .title-section {
        padding: 12px 15px;
        width: 100%;
    }
    
    .form-section {
        padding: 15px;
        width: 100%;
        margin: 15px 0 0;
    }
    
    .form-header {
        font-size: 1rem;
    }
    
    .form-row {
        gap: 10px;
        width: 100%;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .logo-header img {
        height: 2rem;
    }
}