/* Required Acknowledgments — matches Katie mockup layout */
.ack-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.ack-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #FFF4EB;
    border: 1px solid #F5C9A8;
    border-radius: 8px;
}

.ack-alert-title {
    font-weight: 700;
    color: #C45C12;
    margin: 0 0 2px;
}

.ack-alert-text {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.ack-alert-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #EF7622;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ack-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 20px 22px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ack-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.ack-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #002E5D;
}

.ack-intro {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.ack-progress {
    min-width: 140px;
    text-align: right;
}

.ack-progress-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.ack-progress-bar {
    height: 6px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
}

.ack-progress-fill {
    height: 100%;
    width: 0%;
    background: #EF7622;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.ack-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ack-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #ECECEC;
}

.ack-item:first-child {
    border-top: none;
}

.ack-status {
    width: 22px;
    height: 22px;
    border: 2px solid #C8C8C8;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    background: #fff;
}

.ack-item.is-complete .ack-status {
    border-color: #2E7D32;
    background: #2E7D32;
}

.ack-item.is-complete .ack-status:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ack-item-body {
    flex: 1;
    min-width: 0;
}

.ack-item-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.ack-item-desc {
    margin: 0 0 4px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.ack-item-req {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.ack-btn-review {
    flex-shrink: 0;
    min-width: 96px;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #EF7622;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ack-btn-review:hover {
    background: #D96512;
}

.ack-btn-review.is-done {
    background: #2E7D32;
}

.ack-cert {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #D6E2F0;
    border-radius: 8px;
    background: #F7FAFC;
}

.ack-cert-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #002E5D;
}

.ack-cert-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #666;
}

.ack-cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ack-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ack-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ack-field-sig {
    flex: 1 1 240px;
}

.ack-field-date {
    flex: 0 1 140px;
}

.ack-field input[type="text"] {
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 14px;
}

.ack-btn-submit {
    height: 38px;
    min-width: 130px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #9E9E9E;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: not-allowed;
}

.ack-btn-submit.is-enabled {
    background: #EF7622;
    cursor: pointer;
}

.ack-btn-submit.is-enabled:hover {
    background: #D96512;
}

.ack-junior {
    margin-top: 12px;
    font-size: 13px;
    color: #444;
}

/* Modal */
.ack-modal {
    display: none;
    position: fixed;
    z-index: 10050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.ack-modal.is-open {
    display: block;
}

.ack-modal-dialog {
    position: relative;
    width: min(720px, 94vw);
    max-height: 90vh;
    margin: 4vh auto;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.ack-modal-header {
    padding: 16px 20px 8px;
    border-bottom: 1px solid #EEE;
}

.ack-modal-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #002E5D;
}

.ack-modal-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.ack-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.ack-modal-body {
    padding: 16px 20px;
    overflow: auto;
    flex: 1;
    max-height: 50vh;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.ack-modal-body.has-embed {
    max-height: 70vh;
    padding: 0;
    overflow: hidden;
}

.ack-modal-body iframe,
.ack-modal-body .ack-embed-frame {
    width: 100%;
    height: 360px;
    border: 1px solid #DDD;
    border-radius: 4px;
}

.ack-modal-body.has-embed .ack-embed-frame {
    height: 70vh;
    border: none;
    border-radius: 0;
    display: block;
}

.ack-policy-list {
    margin: 8px 0 12px 18px;
    padding: 0;
}

.ack-policy-list a {
    color: #0056A4;
    text-decoration: underline;
    cursor: pointer;
}

.ack-modal-agree {
    margin: 0 20px;
    padding: 12px 14px;
    background: #EAF3FB;
    border-radius: 6px;
}

.ack-modal-agree label {
    margin: 0;
    font-weight: 600;
    color: #222;
    cursor: pointer;
}

.ack-modal-footer {
    padding: 14px 20px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ack-btn-cancel {
    height: 36px;
    min-width: 88px;
    border: 1px solid #CCC;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.ack-btn-agree {
    height: 36px;
    min-width: 88px;
    border: none;
    border-radius: 4px;
    background: #B0B0B0;
    color: #fff;
    font-weight: 700;
    cursor: not-allowed;
}

.ack-btn-agree.is-enabled {
    background: #3276B1;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ack-header {
        flex-direction: column;
    }

    .ack-progress {
        width: 100%;
        text-align: left;
    }

    .ack-item {
        flex-wrap: wrap;
    }

    .ack-btn-review {
        width: 100%;
    }
}
