/* assets/css/style.css */
:root {
    --mds-navy: #003087;
    --mds-red: #CC2200;
    --bg-light: #f5f7fa;
    --text-main: #333;
    --border-grey: #ccc;
}

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

.container {
    max-width: 600px; /* Mobile first, max width for desktop reading */
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 20px;
    border-bottom: 3px solid var(--mds-navy);
}

.header h1 {
    font-size: 1.2rem;
    color: var(--mds-navy);
    margin: 10px 0 0 0;
}

.header-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    background-color: var(--mds-navy);
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
}

.content {
    padding: 20px;
    flex: 1;
}

.info-block {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid var(--mds-red);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.info-block strong {
    display: inline-block;
    width: 80px;
}

.signature-wrapper {
    margin-top: 20px;
    text-align: center;
}

#signature-pad {
    border: 2px dashed var(--border-grey);
    border-radius: 8px;
    background: #fafafa;
    touch-action: none; /* Prevent scroll on touch devices */
    width: 100%;
    max-width: 500px;
    height: 250px;
    cursor: crosshair;
}

.btn-clear {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--border-grey);
    padding: 8px 15px;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--mds-navy);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #002266;
}

.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: #888;
    background: #eee;
}

.error-msg {
    color: var(--mds-red);
    background: #fdd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.success-msg {
    color: #155724;
    background: #d4edda;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
