@charset "utf-8";

/* Mobile-First Verification Page Styles (contact.css) */
body.verification-page {
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.verification-page .auth-container {
    width: 100%;
    max-width: 400px;
    /* Mobile width constraint */
    padding: 20px;
    box-sizing: border-box;
}

.verification-page .auth-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    text-align: center;
}

.verification-page .auth-logo {
    margin-bottom: 30px;
}

.verification-page .auth-logo img {
    max-width: 180px;
    height: auto;
}

.verification-page .auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.verification-page .auth-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.verification-page .input-group {
    margin-bottom: 25px;
    text-align: left;
}

.verification-page .auth-input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 20px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 4px;
    transition: border-color 0.3s;
    font-weight: bold;
}

.verification-page .auth-input:focus {
    border-color: #004098;
    outline: none;
}

.verification-page .auth-btn,
.contract-page .auth-btn {
    width: 100%;
    height: 52px;
    background-color: #004098;
    /* Main brand color */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.verification-page .auth-btn:hover {
    background-color: #00337a;
}

.verification-page .contact-info {
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .verification-page .auth-box {
        padding: 30px 20px;
    }

    .verification-page .auth-title {
        font-size: 20px;
    }
}

/* Contract Summary Page Styles (Full Screen Mobile) */
body.contract-page {
    background-color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent body scroll */
    font-family: 'Noto Sans KR', sans-serif;
}

/* Steps Control */
.step-section {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.step-section.active {
    display: flex;
}

.contract-header {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

.btn-back-arrow {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    margin-right: 15px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    flex: 1;
    text-align: center;
    padding-right: 35px;
    /* Balance the back arrow width */
}

/* Step 1 Specifics (Centered Card) */
.step-1-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    text-align: center;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.auth-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contract-page .input-group {
    margin-bottom: 25px;
    text-align: left;
}

.auth-input {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 20px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 4px;
    transition: border-color 0.3s;
    font-weight: bold;
}

.auth-input:focus {
    border-color: #004098;
    outline: none;
}

.contact-info {
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}

/* Step 2 Specifics (Contract Content) */
.contract-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 80px;
    background-color: #fff;
}

.info-section {
    margin-bottom: 30px;
}

.section-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.summary-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

/* Info Box Style */
.personal-info-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.personal-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.personal-info-row:last-child {
    margin-bottom: 0;
}

.contract-page .personal-info-row .label {
    color: #888;
    font-size: 14px;
    max-width: 200px;
}

.contract-page .personal-info-row .value {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

/* Large Custom Checkbox */
.contract-page .agree-item {
    background-color: #fff;
    margin-top: 10px;
}

.contract-page .custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.custom-checkbox.disabled {
    opacity: 0.6;
    background-color: #eee;
    cursor: not-allowed;
}

.custom-checkbox.checked {
    border-color: #004098;
    background-color: #f0f7ff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #004098;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.btn-area-fixed {
    flex: 0 0 auto;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 10;
}

.contract-page .btn-full {
    width: 100%;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background-color: #004098;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.contract-page .btn-full.cancel {
    background-color: #f1f1f1;
    color: #333;
    margin-bottom: 10px;
}

/* Custom Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.custom-modal {
    background: #fff;
    width: 85%;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.modal-footer {
    border-top: 1px solid #eee;
}

.btn-modal-close {
    width: 100%;
    height: 50px;
    background: #fff;
    border: none;
    color: #004098;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-modal-close:active {
    background: #f0f0f0;
}

.modal-footer.dual {
    display: flex;
}

.modal-footer.dual .btn-modal-close {
    width: 50%;
    border-right: 1px solid #eee;
}

.modal-footer.dual .btn-modal-close:last-child {
    border-right: none;
    color: #333;
    /* Cancel usually grey/black, Confirm blue */
}

.modal-footer.dual .btn-modal-close.confirm-yes {
    color: #004098;
    font-weight: 700;
}

@media (max-width: 480px) {
    .btn-full {
        font-size: 16px;
    }
}

/* Signature Page Styles */
.sign-container {
    padding: 20px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

.sign-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.signature-pad-wrapper {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    flex: 1;
    /* Take remaining space */
    min-height: 180px;
    touch-action: none;
    /* Prevent scroll while drawing */
    margin-bottom: 15px;
    max-height: 300px;
}

.signature-pad {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.btn-clear {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    z-index: 5;
}

/* Completion Page Styles */
.complete-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f5f7fa;
}

.complete-msg-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.complete-icon {
    font-size: 40px;
    color: #004098;
    margin-bottom: 15px;
}

.complete-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.complete-sub {
    font-size: 14px;
    color: #666;
}

.pdf-viewer-box {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
    /* Fallback height */
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    text-align: center;
    color: #888;
    padding: 20px;
}