/* Event upload portal — separate from product customize pages */

.fmc-portal-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    font-family: 'Jost', sans-serif;
    color: #103948;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.fmc-portal-hero { text-align: center; margin-bottom: 28px; }
.fmc-portal-kicker {
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #1C6B7D;
    font-weight: 600;
    margin: 0 0 10px;
}
.fmc-portal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 40px);
    margin: 0 0 8px;
    line-height: 1.1;
}
.fmc-portal-sub { color: #6E7180; font-size: 15px; margin: 0; line-height: 1.5; }

.fmc-portal-card {
    background: #fff;
    border: 1px solid rgba(16,57,72,.1);
    border-radius: 22px;
    padding: 28px 24px 32px;
    box-shadow: 0 24px 50px -36px rgba(16,57,72,.35);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fmc-portal-panel {
    display: none;
    min-width: 0;
}
.fmc-portal-panel.is-active { display: block; }

.fmc-portal-steps {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.fmc-portal-steps--two li {
    flex: 1;
    text-align: center;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 999px;
    background: #F5EFE4;
    color: #6E7180;
    font-weight: 600;
}
.fmc-portal-steps li.is-active {
    background: #1C6B7D;
    color: #fff;
}

.fmc-portal-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 8px;
}
.fmc-portal-hint { color: #6E7180; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.fmc-portal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 14px 0 6px;
}
.fmc-portal-label span { color: #C2697C; }

.fmc-portal-input {
    width: 100%;
    border: 1.5px solid rgba(16,57,72,.12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    background: #FAF4EA;
    box-sizing: border-box;
}

.fmc-portal-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
    min-width: 0;
}
.fmc-portal-product {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 2px solid rgba(16,57,72,.1);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    white-space: normal;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.fmc-portal-product:hover {
    border-color: rgba(28,107,125,.35);
}
.fmc-portal-product.is-active {
    border-color: #1C6B7D;
    background: #F0F7F8;
    box-shadow: 0 0 0 3px rgba(28,107,125,.12);
}
.fmc-portal-product-media {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
}
.fmc-portal-product img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}
.fmc-portal-product-body {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.fmc-portal-product strong {
    display: block;
    font-size: 15px;
    color: #103948;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
}
.fmc-portal-size {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1C6B7D;
    background: #E9EFEC;
    padding: 4px 10px;
    border-radius: 999px;
}
.fmc-portal-product-desc {
    display: block;
    font-size: 13px;
    color: #6E7180;
    margin-top: 6px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.fmc-portal-btn {
    display: inline-block;
    margin-top: 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    background: #103948;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}
.fmc-portal-btn--ghost {
    background: transparent;
    color: #103948;
    border: 1.5px solid rgba(16,57,72,.25);
}
.fmc-portal-btn--accent { background: #1C6B7D; }
.fmc-portal-btn:disabled { opacity: .5; cursor: not-allowed; }

.fmc-portal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.fmc-portal-nav .fmc-portal-btn { margin-top: 0; }

.fmc-portal-error { color: #991B1B; font-size: 13px; margin: 8px 0 0; }
.fmc-portal-foot {
    text-align: center;
    font-size: 12px;
    color: #9A9586;
    margin-top: 24px;
    line-height: 1.5;
}

@media (min-width: 560px) {
    .fmc-portal-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .fmc-portal-product {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }
    .fmc-portal-product-media {
        flex: none;
        width: 100%;
        height: auto;
    }
    .fmc-portal-product img {
        width: 100%;
        max-width: 140px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .fmc-portal-nav { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .fmc-portal-wrap { padding: 28px 14px 64px; }
    .fmc-portal-card { padding: 22px 16px 28px; border-radius: 18px; }
    .fmc-portal-title { font-size: clamp(24px, 7vw, 32px); }
    .fmc-portal-steps--two li { font-size: 11px; padding: 9px 8px; }
    .fmc-portal-product {
        gap: 10px;
        padding: 10px 12px;
    }
    .fmc-portal-product-media {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }
    .fmc-portal-product img {
        width: 72px;
        height: 72px;
    }
    .fmc-portal-product strong { font-size: 14px; }
    .fmc-portal-product-desc { font-size: 12px; }
}
