/* 
   Agreement Page - Project Design System
   Based on existing-patient.css
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #1B66C9;
    --primary-hover: #1652a3;
    --bg-color: #F8FBFF;
    --card-bg: #ffffff;
    --text-main: #494E53;
    --text-sub: #777d85;
    --border-color: #DDE2E8;
    --input-bg: #FFFFFF;

    --header-height: 60px;
    --footer-height: 70px;
    --input-height: 40px;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
    background-color: var(--bg-color);
    overflow-y: auto;
    color: var(--text-main);
}

.kiosk-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.page-header {
    height: var(--header-height);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.page-header .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.page-body {
    flex: 1;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.form-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Left sidebar for list, right for content */
    gap: 20px;
    width: 100%;
    max-width: 1800px;
}

.form-section-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #EEF2F7;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Agreement Content Area */
.agreement-content {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Signature Pad */
.signature-box {
    border: 2px dashed #ccc;
    background: #fafafa;
    border-radius: 8px;
    position: relative;
    height: 200px;
    width: 100%;
}

.signature-box canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.signature-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    pointer-events: none;
    font-weight: 700;
    font-size: 24px;
}

/* Form inputs */
input[type="text"],
.select_box {
    width: 100%;
    height: var(--input-height);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    background-color: var(--input-bg);
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

.page-footer {
    height: var(--footer-height);
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    gap: 12px;
}

button {
    height: 44px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: 'Pretendard', sans-serif;
}

.cancel_btn {
    background-color: #F0F2F5;
    color: #494E53;
}

.registration_bth {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 1199px) {
    .form-grid-layout {
        grid-template-columns: 1fr;
    }
}