html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    scroll-snap-type: y mandatory;
    font-family: 'Poppins', sans-serif;
    text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
    font-size: 3em;
    transition: transform 3s ease;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

#section1 {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #dadada);
    color: green;
    font-size: 6vw;
}

.scroll-hint {
    position: absolute;
    right: 24px;
    bottom: 24px;
    padding: 16px 28px;
    border: 2px solid rgba(0, 128, 0, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    color: green;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    animation: scrollHintFadeIn 1.2s ease forwards;
    animation-delay: 2s;
}

@keyframes scrollHintFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#section2, #section3, #section4 {
    flex-direction: column;
    font-size: calc(1rem + 2vw);
}

#section2 {
    background: linear-gradient(to top left, #dadada, #aeaeae);
}

#section3 {
    background: linear-gradient(to bottom left, #78bc94, #aeaeae);
}

#section3 .com-only {
    display: none !important;
}

body.com-host #section3 .com-only {
    display: inline !important;
}

#section4 {
    background: linear-gradient(to top right, #a6a4fc, #78bc94);
}

/* Contact form */

#section4 .contact-form {
    width: 100%;
    max-width: 600px;
    min-height: 260px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    color: #222;
    font-size: 14px;
    line-height: 1.4;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.form-group:last-child {
    margin-right: 0;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    color: #222;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder {
    color: #888;
}

input[type="text"]:hover, input[type="email"]:hover, textarea:hover, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

textarea {
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 16px 0 0;
}

#section4 .recaptcha-notice, #section4 .recaptcha-notice *, #section4 .recaptcha-notice a {
    font-size: 10px;
    line-height: 1.35;
}

.recaptcha-notice {
    flex: 1;
    max-width: 360px;
    margin: 0;
    color: #333;
    font-weight: 400;
    text-align: left;
}

.recaptcha-notice a {
    color: #0056b3;
    text-decoration: underline;
}

.recaptcha-notice a:hover {
    text-decoration: none;
}

.submit-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 90px;
    height: auto;
    min-height: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: #007bff;
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-result {
    min-height: 220px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.success-message {
    color: #222;
    font-size: calc(1rem + 0.35vw);
    font-weight: 600;
    line-height: 1.4;
}

.form-error {
    margin-bottom: 15px;
    color: #de5454;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.grecaptcha-badge {
    visibility: hidden;
}

@media only screen and (max-width: 550px) {
    #section1 {
        font-size: 10vw;
    }
    
    .scroll-hint {
        right: 16px;
        bottom: 16px;
        padding: 12px 18px;
        font-size: 18px;
    }

    .section {
        font-size: 4em;
    }

    #section4 .contact-form {
        width: calc(100% - 40px);
        max-width: none;
        padding: 20px;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .recaptcha-notice {
        max-width: 70%;
        text-align: left;
    }

    #section4 .recaptcha-notice, #section4 .recaptcha-notice *, #section4 .recaptcha-notice a {
        font-size: 8px;
        line-height: 1.3;
    }

    .submit-btn {
        min-width: 90px;
        padding: 10px 16px;
        font-size: 12px;
    }
}