:root {
    --jef-blue: #1a3c6e;
    --jef-light-blue: #3c7cc4;
    --jef-gray: #333333;
    --jef-light-gray: #eeeeee;
    --jef-silver: #f4f7f9;
    --white: #ffffff;
    --success: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--jef-silver);
    color: var(--jef-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--jef-silver);
}

header .logo { width: 100px; margin-bottom: 20px; }
header h1 { color: var(--jef-blue); font-size: 2rem; margin: 0; }
header p { color: #666; font-size: 1.1rem; }

main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 860px) {
    main { grid-template-columns: 1fr; }
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--jef-blue);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--jef-light-blue);
}

.row { display: flex; gap: 20px; }
.col { flex: 1; }

.preview-container {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h2 { margin: 0; font-size: 1.3rem; color: var(--jef-blue); }

.btn-copy {
    background-color: var(--jef-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn-copy:hover { opacity: 0.9; }
.btn-copy:active { transform: scale(0.98); }

.signature-box {
    background: white;
    padding: 24px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    min-height: 250px;
    overflow-x: auto;
}

.status-message {
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    height: 20px;
    color: var(--success);
    font-weight: bold;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Custom Checkbox Style */
.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--jef-gray);
    user-select: none;
    min-height: 24px;
}

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

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid #ddd;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
    border-color: #bbb;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--jef-blue);
    border-color: var(--jef-blue);
}

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

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

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-container .label-text {
    margin-left: 5px;
}

/* Helper to make input transition smoother */
#area-container {
    transition: all 0.3s ease-out;
    overflow: hidden;
}
