@import "./section-common.css";

.sme-hero-section {
    padding-top: calc(var(--nav-offset) + var(--sec-pad-y));
    overflow: hidden;
}

/* A dark photo band, like Pricing/Security: it holds its own contrast
   regardless of the light/dark toggle, so text inside this section is
   pinned to explicit white values below rather than the theme vars. */
.sme-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sme-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sme-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8, 14, 11, 0.94) 0%,
        rgba(10, 18, 14, 0.88) 45%,
        rgba(20, 40, 26, 0.78) 100%
    );
}

.sme-hero-section > .wwd-inner {
    position: relative;
    z-index: 1;
}

.sme-hero-section .wwd-top-row {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sme-hero-section .wwd-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.sme-hero-section .wwd-headline {
    color: #fff;
}

.sme-hero-section .wwd-body {
    color: rgba(255, 255, 255, 0.75);
}

.sme-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    justify-self: end;
}

.sme-hero-badge {
    font-family: DM Sans;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-bright);
    margin: 0;
}

.sme-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-solid);
    color: var(--text);
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.sme-cta:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

/* --- About ------------------------------------------------------------ */

.sme-about-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 62ch;
    padding-top: var(--sec-gap);
}

.sme-about-copy p {
    font-family: DM Sans;
    font-size: 16px;
    line-height: 1.6em;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-2);
    margin: 0;
}

/* --- Key highlights ----------------------------------------------------- */

.sme-hl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: var(--sec-gap);
}

.sme-hl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.sme-hl-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: DM Sans;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-tint);
}

.sme-hl-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--brand-line);
    background: var(--brand-tint);
    color: var(--brand-bright);
    display: grid;
    place-items: center;
}

.sme-hl-title {
    font-family: DM Sans;
    font-size: 18px;
    line-height: 1.3em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.sme-hl-desc {
    font-family: DM Sans;
    font-size: 14px;
    line-height: 1.5em;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-3);
    margin: 0;
}

/* --- Eligibility --------------------------------------------------------- */

.sme-elig-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: var(--sec-gap);
}

.sme-elig-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.sme-elig-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--brand-bright);
    margin-top: 2px;
}

.sme-elig-title {
    font-family: DM Sans;
    font-size: 17px;
    line-height: 1.3em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 6px;
}

.sme-elig-desc {
    font-family: DM Sans;
    font-size: 15px;
    line-height: 1.5em;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-3);
    margin: 0;
}

/* --- Registration -------------------------------------------------------- */

.sme-apply-section {
    padding-top: calc(var(--sec-pad-y) * 0.55);
}

.sme-apply-intro {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: var(--sec-gap);
}

.sme-apply-intro .wwd-body {
    max-width: none;
    justify-self: unset;
    margin: 0 auto;
    padding-top: 4px;
}

.sme-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--brand-bright);
    font-family: DM Sans;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.sme-mail-link:hover {
    text-decoration: underline;
}

.sme-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.sme-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sme-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sme-field label {
    font-family: DM Sans;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
}

.sme-field input,
.sme-field select,
.sme-field textarea {
    font-family: DM Sans;
    font-size: 15px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.sme-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23a9a9b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* The arrow above is a data-URI SVG, so it can't follow a CSS variable -
   the dark-mode stroke colour would nearly vanish on the light --surface-2
   background, so swap in a dark-stroke version here. */
@media (prefers-color-scheme: light) {
    .sme-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%235b6259' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }
}

.sme-field select option {
    background: var(--surface-2);
    color: var(--text);
}

.sme-field input::placeholder,
.sme-field textarea::placeholder {
    color: var(--text-4);
}

.sme-field input:focus,
.sme-field select:focus,
.sme-field textarea:focus {
    border-color: var(--brand-bright);
}

.sme-field textarea {
    resize: vertical;
    min-height: 100px;
}

.sme-field--invalid input,
.sme-field--invalid select,
.sme-field--invalid textarea {
    border-color: var(--danger);
}

.sme-field-error {
    font-family: DM Sans;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--danger);
    margin: 0;
}

.sme-check-row--invalid span {
    color: var(--danger);
}

.sme-declarations {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.sme-declarations-label {
    font-family: DM Sans;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.sme-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.sme-check-row input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand-bright);
}

.sme-check-row span {
    font-family: DM Sans;
    font-size: 14px;
    line-height: 1.5em;
    font-weight: 300;
    color: var(--text-3);
}

.sme-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-solid);
    color: var(--text);
    font-family: DM Sans;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sme-submit:hover {
    background: var(--brand-hover);
}

.sme-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sme-status {
    font-family: DM Sans;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.sme-status--ok {
    color: var(--brand-bright);
}

.sme-status--error {
    color: var(--danger);
}

.sme-disclaimer {
    max-width: 640px;
    margin: 28px auto 0;
    text-align: center;
    font-family: DM Sans;
    font-size: 12px;
    line-height: 1.6em;
    font-weight: 300;
    color: var(--text-4);
}

@media (max-width: 992px) {
    .sme-hero-copy {
        justify-self: start;
    }

    .sme-hl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sme-form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .sme-hl-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .sme-form {
        padding: 24px 20px;
    }
}
