/* Mira Sub Sync — Frontend Form */
.mss-card {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 900px;
    margin: 25px 0px;
    font-family: 'Poppins', sans-serif;
    color: #1a2e22;
    box-sizing: border-box;
    overflow: hidden;
}

.mss-card *,
.mss-card *::before,
.mss-card *::after {
    box-sizing: border-box;
}

/* Two-column top section */
.mss-top {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mss-img-col {
    flex: 0 0 34%;
    max-width: 25%;
}

.mss-img {
    width: 100%;
    height: auto;
    display: block;
}

.mss-content-col {
    flex: 1;
    min-width: 0;
}

.mss-content-col.mss-no-img {
    max-width: 100%;
}

/* Title */
.mss-title {
    color: #3F3D56 !important;
    font-size: 34px !important;
    font-weight: bold;
    font-family: 'Poppins bold', sans-serif;
    padding: 0px !important;
}

.mss-highlight {
    color: #00a876;
}

/* Subtitle */
.mss-card .mss-subtitle {
    color: #3F3D56;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* Description */
.mss-card .mss-desc {
    color: #3E3E3E;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 300;
}

/* Inline form row */
.mss-form-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mss-form .mss-field {
    flex: 1;
    min-width: 120px;
}

.mss-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2a4a34;
    margin-bottom: 5px;
}

.mss-form input[type="text"],
.mss-form input[type="email"] {
    width: 100%;
    padding: 9px 13px;
    background: #fff;
    border: 1px solid #b8ddc8;
    border-radius: 8px;
    color: #1a2e22;
    font-size: 14px !important;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.4;
}

.mss-form input[type="text"]:focus,
.mss-form input[type="email"]:focus {
    border-color: #00a876;
}

.mss-form input::placeholder {
    color: #a0bfad;
}

.mss-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #00a876;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1.4;
    white-space: nowrap;
    align-self: flex-end;
}

.mss-btn:hover {
    background: #008f64;
}

.mss-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Messages */
.mss-msg {
    margin-top: 12px;
    font-size: 13px;
    min-height: 18px;
    line-height: 1.5;
    width: 100%;
}

.mss-msg.mss-success {
    color: #7bdcb5;
}

.mss-msg.mss-error {
    color: #FF8484;
}

.mss-msg.mss-warning {
    color: #f59e0b;
}

.mss-msg.mss-already {
    color: #f59e0b;
}

/* Sidebar layout — always compact regardless of screen size */
.mss-card--sidebar {
    max-width: 340px;
    background-size: cover;
    padding: 28px 22px;
}

.mss-card--sidebar .mss-img-col {
    display: none;
}

.mss-card--sidebar .mss-desc {
    display: none;
}

.mss-card--sidebar .mss-title,
.mss-card--sidebar .mss-subtitle {
    text-align: center;
}

.mss-card--sidebar .mss-top {
    margin-bottom: 14px;
}

.mss-card--sidebar .mss-form-row {
    flex-direction: column;
    gap: 12px;
}

.mss-card--sidebar .mss-form .mss-field {
    width: 100%;
    min-width: unset;
}

.mss-card--sidebar .mss-title {
    font-size: 26px !important;
}

.mss-card--sidebar .mss-form-row {
    justify-content: center;
}

.mss-card--sidebar .mss-btn {
    width: auto;
    align-self: center;
}

.mss-card--sidebar .mss-msg {
    text-align: center;
}

/* Responsive */
@media (max-width: 680px) {
    .mss-card {
        padding: 35px 30px;
        background-size: cover;
    }

    .mss-img-col {
        display: none;
    }

    .mss-card .mss-desc {
        display: none;
    }

    .mss-top {
        margin-bottom: 14px;
    }

    .mss-title,
    .mss-card .mss-subtitle {
        text-align: center;
    }

    .mss-title {
        font-size: 24px !important;
    }

    .mss-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .mss-form .mss-field {
        width: 100%;
        min-width: unset;
    }

    .mss-btn {
        width: auto;
        align-self: flex-start;
    }
}
