/* ==========================================================================
   Social Media Contract - SCOPED STYLES
   --------------------------------------------------------------------------
   Every selector in this file is namespaced with the "smc-" prefix AND is
   scoped under a unique block class (.smc-req-card / .smc-form-*).

   Do NOT add generic selectors (e.g. .requirement-item, .icon-circle, .btn,
   .card) here - those already exist in the global theme / Requirements.css
   and overriding them would leak into unrelated pages.
   ========================================================================== */


/* ------------------------------------------------------------------
   1) Requirements modal - "Contract on the Responsible Use of Social Media"
      Previously this row reused the global .requirement-item / .icon-circle /
      .hover-card classes, so Requirements.css forced `padding: 8px 0` and
      `display: flex` onto it. The row is now fully self-contained.
   ------------------------------------------------------------------ */
.smc-req-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 4px;
    border-bottom: 1px solid #eeeeee;
    background: transparent;
}

.smc-req-card__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}


.smc-req-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222222;
    word-break: break-word;
}

.smc-req-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.smc-req-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #86efac;
    border-radius: 999px;
    background-color: #dcfce7;
    color: #166534;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.smc-req-card__badge i {
    font-size: 12px;
    line-height: 1;
}

.smc-req-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}

.smc-req-card__btn:hover,
.smc-req-card__btn:focus,
.smc-req-card__btn:active {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #ffffff;
    text-decoration: none;
}

.smc-req-card__btn i {
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 576px) {
    .smc-req-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .smc-req-card__actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 6px;
    }
}


/* ------------------------------------------------------------------
   2) Social Media Contract form page (social_media_form.php)
      Full-bleed WHITE panel: the theme gives .content-body a 40px padding
      (15px on mobile), so the negative margins below cancel it and let the
      white surface fill every available space.
   ------------------------------------------------------------------ */
.smc-form-fullbleed {
    width: auto;
    box-sizing: border-box;
    margin: -40px -40px 0;
    padding: 32px 40px 40px;
    background-color: #ffffff;
    min-height: calc(100vh - 170px);
}

.smc-form-inner {
    width: 100%;
    max-width: none;
}

/* Header block ---------------------------------------------------- */
.smc-form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eeeeee;
}

.smc-form-head__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-image: linear-gradient(135deg, #d50000 0%, #8e0000 100%);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(213, 0, 0, .25);
}

.smc-form-head__text {
    min-width: 0;
}

.smc-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
    margin-bottom: 2px;
}

.smc-form-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

/* Intro paragraph -------------------------------------------------- */
.smc-form-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1.25rem;
}

.smc-form-name {
    font-weight: 700;
    color: #d50000;
    text-transform: capitalize;
}

/* Social site chips ------------------------------------------------ */
.smc-form-subheading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
    margin-bottom: 14px;
}

.smc-form-sites > [class*="col-"] {
    margin-bottom: 10px;
}

.smc-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fcfcfd;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.smc-form-check:hover {
    border-color: #d50000;
    background-color: #fff5f5;
}

.smc-form-check .form-check-input {
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.smc-form-check .form-check-label {
    margin: 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.smc-form-check input:checked + .form-check-label {
    font-weight: 700;
    color: #b30000;
}

/* Modern browsers: highlight the whole chip when ticked */
.smc-form-sites .smc-form-check:has(input:checked) {
    border-color: #d50000;
    background-color: #fff1f1;
    box-shadow: inset 0 0 0 1px #d50000;
}

.smc-form-others {
    width: auto;
    max-width: 320px;
    margin-top: 6px;
}

.smc-form-others-box {
    margin-top: 10px;
    max-width: 480px;
}

/* Obligations panel ------------------------------------------------ */
.smc-form-section {
    margin-top: 1.75rem;
    padding: 18px 20px;
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    border-left: 4px solid #d50000;
    border-radius: 10px;
}

.smc-form-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.smc-form-section__title i {
    color: #d50000;
}

.smc-form-list {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
}

.smc-form-list li {
    margin-bottom: 0.4rem;
}

.smc-form-list li::marker {
    color: #d50000;
}

.smc-form-note {
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 0.75rem;
}

/* Actions ---------------------------------------------------------- */
.smc-form-actions {
    margin-top: 1.75rem;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.smc-form-already {
    margin-bottom: 0.85rem;
}

.smc-form-actions .smc-form-submit {
    min-width: 200px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .2px;
}

.smc-form-actions .smc-form-submit.btn-primary {
    background-color: #d50000;
    border-color: #d50000;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(213, 0, 0, .22);
}

.smc-form-actions .smc-form-submit.btn-primary:hover,
.smc-form-actions .smc-form-submit.btn-primary:focus {
    background-color: #b30000;
    border-color: #b30000;
    color: #ffffff;
}

/* Responsive ------------------------------------------------------- */
@media (max-width: 767px) {
    .smc-form-fullbleed {
        margin: 0 -15px -15px;
        padding: 20px 15px 25px;
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .smc-form-head {
        align-items: flex-start;
    }

    .smc-form-others,
    .smc-form-others-box {
        max-width: 100%;
    }

    .smc-form-actions .smc-form-submit {
        width: 100%;
    }
}


/* ------------------------------------------------------------------
   3) Success page (social_media_contract_success.php)
      Reuses .smc-form-fullbleed for the white surface; the block below is
      the centered confirmation card. Previously this page used the
      Bootstrap-Icons class `bi bi-check-circle-fill`, which this project
      does not load (it ships Font Awesome), so the check mark never showed.
   ------------------------------------------------------------------ */
.smc-ok {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px 50px;
    box-sizing: border-box;
    text-align: center;
}

.smc-ok__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .28);
    animation: smcOkPop .45s ease-out both;
}

@keyframes smcOkPop {
    0% {
        transform: scale(.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.smc-ok__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
    margin-bottom: 10px;
}

.smc-ok__text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 26px;
}

.smc-ok__countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 18px;
    margin-bottom: 16px;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #374151;
}

.smc-ok__countdown-value {
    display: inline-block;
    min-width: 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #d50000;
}

.smc-ok__bar {
    width: 260px;
    max-width: 100%;
    height: 6px;
    margin: 0 auto 28px;
    border-radius: 999px;
    background-color: #f1f1f1;
    overflow: hidden;
}

.smc-ok__bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background-image: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
    transition: width 1s linear;
}

.smc-ok__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid #d50000;
    border-radius: 8px;
    background-color: #d50000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(213, 0, 0, .22);
    transition: background-color .15s ease, border-color .15s ease;
}

.smc-ok__btn:hover,
.smc-ok__btn:focus,
.smc-ok__btn:active {
    background-color: #b30000;
    border-color: #b30000;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 576px) {
    .smc-ok {
        padding: 28px 12px 36px;
    }

    .smc-ok__icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .smc-ok__title {
        font-size: 1.2rem;
    }

    .smc-ok__btn {
        width: 100%;
        justify-content: center;
    }
}
