@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

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

html {
    overscroll-behavior: none;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #C73E3A;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

/* Scrolling Banner */
.scrolling-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 1000;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content {
    display: inline-block;
    font-family: 'Michroma', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.banner-content span {
    opacity: 0.8;
    margin-right: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    z-index: 10;
    position: relative;
}

h1 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin-bottom: 5rem;
}

.no-break {
    white-space: nowrap;
}

.subtitle {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.share-section {
    margin-top: 4rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    background-color: white;
    color: #C73E3A;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.background-pattern {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255,255,255,.1) 35px,
        rgba(255,255,255,.1) 70px
    );
}

/* Form Toggle Styles */
.form-toggle-container {
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 0 20px;
    text-align: center;
}

.form-toggle-checkbox {
    display: none;
}

.form-toggle-button {
    display: inline-block;
    background: white;
    color: #C73E3A;
    border: 1px solid #000;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.form-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.form-toggle-button:active {
    transform: translateY(0);
}

/* Form Container - Hidden by default */
.form-container {
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(-20px);
}

/* Show form when checkbox is checked */
.form-toggle-checkbox:checked ~ .form-container {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    transform: translateY(0);
}

/* Change button appearance when form is shown */
.form-toggle-checkbox:checked + .form-toggle-button {
    background: rgba(255, 255, 255, 0.9);
}

.contact-form {
    background: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #000;
    overflow: visible;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    border: 1px solid #000;
    color: #333;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: #f8f9fa;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #8e8e93;
    opacity: 1;
    font-weight: 400;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-submit {
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    background: #C73E3A;
    color: white;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.form-submit:hover {
    background: #a33329;
}

.form-submit:active {
    background: #8b2c24;
    transform: scale(0.98);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .share-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .form-toggle-container {
        margin-top: 1.5rem;
        padding: 0 10px;
    }

    .form-toggle-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .form-container {
        margin-top: 1.5rem;
        padding: 0 10px;
    }

.contact-form {
        border-radius: 4px;
        padding: 16px;
    }

    .form-input,
    .form-textarea {
        padding: 16px 20px;
        font-size: 16px;
    }

    .form-submit {
        padding: 16px 20px;
        font-size: 17px;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .form-input,
    .form-textarea {
        font-size: 16px !important;
    }

    .form-input:focus,
    .form-textarea:focus {
        font-size: 16px !important;
    }
}

/* Small screens */
@media (max-width: 375px) {
    .form-input,
    .form-textarea {
        padding: 14px 16px;
    }

    .form-submit {
        padding: 14px 16px;
    }
}