/* --- CONTAINER --- */
.cedars-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

/* --- HEADER --- */
.cedars-header {
    background: #009688;
    color: white;
    padding: 25px;
    text-align: center;
}
.cedars-header h2 { margin: 0; font-size: 26px; color: white; }

/* --- SECTIONS --- */
.form-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}
.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    border-left: 5px solid #009688;
    padding-left: 15px;
}

/* --- INPUTS --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: bold; color: #444; }
.req { color: red; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fdfdfd;
}
textarea { resize: vertical; }

/* --- DROPDOWNS --- */
.cedars-select, .cedars-multi-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
}
.cedars-multi-select {
    height: auto;
    min-height: 180px; 
    background: #fcfcfc;
}

/* --- FILE UPLOAD --- */
.file-upload-box {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
}
.file-upload-box:hover { background: #f0f0f0; }
.file-upload-box input {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer;
}

/* --- SIGNATURE AREA (SQUARE SHADED) --- */
.signature-area { 
    width: 100%; /* Can adjust to fixed width if desired, e.g., 400px */
    max-width: 500px; /* Limits width so it looks more square on desktop */
    height: 300px; /* Taller height makes it look like a box/square */
    background-color: #f2f2f2; /* SHADED COLOR */
    border: 2px solid #ccc; /* Solid border */
    border-radius: 4px;
    position: relative;
    box-sizing: border-box;
}
#signature-pad { 
    width: 100%; 
    height: 100%; 
    display: block; 
    cursor: crosshair;
}

/* Clear Signature Button */
.clear-sig-btn {
    background: #fff;
    color: #d9534f;
    border: 1px solid #d9534f;
    padding: 5px 15px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
.clear-sig-btn:hover { background: #ffebeb; }

/* --- SUBMIT --- */
.form-footer { padding: 30px; text-align: center; background: #f4f4f4; }
.submit-btn {
    background: #009688;
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover { background: #00796b; }