/* ============================================
   Spa Saldo Forms — Frontend Styles
   Matches branded layout from Spa Saldo PDFs
   ============================================ */

/* ---------- Reset / Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');
.ssf-wrapper *,
.ssf-wrapper *::before,
.ssf-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Wrapper ---------- */
.ssf-wrapper {
    font-family: 'Oxygen', sans-serif;
    color: #1a1a1a;
    max-width: 820px;
    margin: 0 auto 48px;
    background: #fff;
}

/* ---------- Header (logo bar) ---------- */
.ssf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 36px;
    border-bottom: 2px solid #402814; 
    margin-bottom: 0;
    background: #402814;
}

.ssf-logo-mark {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}

.ssf-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ssf-brand-name {
    font-family: 'Oxygen', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
}

.ssf-brand-sub {
   font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7); 
}

/* ---------- Form Container ---------- */
.ssf-form-container {
    padding: 36px 36px 40px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* ---------- Form Title ---------- */
.ssf-form-title-block {
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ddd;
}

.ssf-form-title {
    font-family: 'Oxygen', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
   color: #402814; 
    margin: 0 0 4px;
}

/* ---------- Sections ---------- */
.ssf-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #ebebeb;
}

.ssf-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ssf-section-title {
   font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #402814;
    margin-bottom: 18px;
}

.ssf-section-note {
    font-size: 13px;
    color: #666;
    margin: -10px 0 14px;
    font-style: italic;
}

.ssf-body-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 12px;
}

/* ---------- Field Grid ---------- */
.ssf-fields-grid {
    display: grid;
    gap: 18px 24px;
}

.ssf-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.ssf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ssf-field.ssf-col-2 {
    grid-column: span 2;
}

.ssf-field label {
    font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  color: #402814; 
}

.ssf-field input[type="text"],
.ssf-field input[type="email"],
.ssf-field input[type="tel"],
.ssf-field input[type="date"],
.ssf-field input[type="number"],
.ssf-field textarea,
.ssf-field select {
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    outline: none;
    width: 100%;
}

.ssf-field input:focus,
.ssf-field textarea:focus,
.ssf-field select:focus {
    border-color: #402814;              /* was #1a1a1a */
    background: #fff;
}

.ssf-field textarea {
    resize: vertical;
    min-height: 80px;
}

.ssf-field .req {
    color: #c0392b;
}

.ssf-mt {
    margin-top: 14px;
}

/* ---------- Checkboxes ---------- */
.ssf-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.ssf-checkbox-grid.ssf-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.ssf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.4;
    cursor: pointer;
    color: #333;
}

.ssf-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ssf-custom-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1.5px solid #999;
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}

.ssf-checkbox-label input[type="checkbox"]:checked + .ssf-custom-check {
    background: #402814;                /* was #1a1a1a */
    border-color: #402814;
}

.ssf-checkbox-label input[type="checkbox"]:checked + .ssf-custom-check::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

/* ---------- Radio Buttons ---------- */
.ssf-radio-group label:first-child {
    font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.ssf-radios {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ssf-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
}

.ssf-radio-label input[type="radio"] {
   accent-color: #402814; 
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ---------- Initials List (Waxing) ---------- */
.ssf-initials-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ssf-initial-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: #fdf8f5;                /* was #f9f9f9 — warm tint */
    border: 1px solid #d9b99a;  
    border-radius: 3px;
}

.ssf-initials-input {
    flex-shrink: 0;
    width: 68px;
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    font-style: italic;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    text-align: center;
    background: #fff;
}

.ssf-initials-input:focus {
    outline: none;
    border-color: #402814;  
}

.ssf-initial-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #333;
    padding-top: 5px;
}

/* ---------- Health Questions (Massage) ---------- */
.ssf-health-questions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ssf-hq-item {
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.ssf-hq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f9f9f9;
    gap: 16px;
}

.ssf-hq-question span {
    font-size: 13.5px;
    color: #333;
    line-height: 1.4;
}

.ssf-hq-detail {
    padding: 10px 16px 12px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.ssf-hq-detail label {
    font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    display: block;
    margin-bottom: 6px;
}

.ssf-hq-detail input[type="text"] {
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    background: #fafafa;
}

.ssf-hq-detail input[type="text"]:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

/* ---------- Consent Block ---------- */
.ssf-consent-block {
    
    padding: 20px 22px;
    border-radius: 3px;
    background: #fdf8f5;                /* was #f5f5f5 */
    border: 1px solid #d9b99a; 
    margin-top: 8px;
}

.ssf-consent-text {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* ---------- Risks List ---------- */
.ssf-risks-list {
    padding-left: 20px;
    margin: 0;
}

.ssf-risks-list li {
    font-size: 13.5px;
    line-height: 1.65;
    color: #333;
    margin-bottom: 10px;
}

.ssf-risks-list li:last-child {
    margin-bottom: 0;
}

/* ---------- Signature Block ---------- */
.ssf-signature-block {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #ddd;
}

.ssf-sig-wrap {
    border: 1.5px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.ssf-signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    touch-action: none;
}

.ssf-sig-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.ssf-clear-sig {
   font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    background: none;
    border: 1px solid #ccc;
    padding: 5px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.ssf-clear-sig:hover {
  border-color: #402814;              /* was #1a1a1a */
    color: #402814;
}

.ssf-sig-hint {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

.ssf-sig-required-msg {
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
    display: none;
}

.ssf-field-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.ssf-field-date label {
    font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    white-space: nowrap;
}

.ssf-field-date input[type="date"] {
    font-family: 'Oxygen', sans-serif;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fafafa;
    outline: none;
    width: 200px;
}

.ssf-field-date input[type="date"]:focus {
    border-color: #1a1a1a;
    background: #fff;
}

/* ---------- Submit Button ---------- */
.ssf-form-footer {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ssf-submit-btn {
    font-family: 'Oxygen', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: #402814 !important;
    border: none;
    padding: 14px 36px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.ssf-submit-btn:hover {
    background: #5a3a1e !important; 
}

.ssf-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ssf-spin 0.7s linear infinite;
}

@keyframes ssf-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Error / Success Messages ---------- */
.ssf-error-message {
    font-size: 13px;
    color: #c0392b;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    padding: 10px 14px;
    border-radius: 3px;
    max-width: 500px;
}

.ssf-success-message {
    text-align: center;
    padding: 48px 24px;
    background: #f9f9f9;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.ssf-success-icon {
    width: 52px;
    height: 52px;
    background: #402814;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 18px;
}

.ssf-success-message h3 {
   font-family: 'Oxygen', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #402814;
}

.ssf-success-message p {
    font-size: 14px;
    color: #555;
    margin: 0 0 22px;
    line-height: 1.6;
}

.ssf-pdf-download {
    display: inline-block;
    font-family: 'Oxygen', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
   background: #402814 !important; 
    padding: 12px 28px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s;
}

.ssf-pdf-download:hover {
    background: #5a3a1e !important;
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .ssf-header {
        padding: 16px 20px;
    }

    .ssf-form-container {
        padding: 24px 20px 30px;
    }

    .ssf-fields-grid.ssf-grid-2 {
        grid-template-columns: 1fr;
    }

    .ssf-field.ssf-col-2 {
        grid-column: span 1;
    }

    .ssf-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .ssf-checkbox-grid.ssf-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .ssf-initial-item {
        flex-direction: column;
    }

    .ssf-initials-input {
        width: 100%;
    }

    .ssf-hq-question {
        flex-direction: column;
        align-items: flex-start;
    }

    .ssf-signature-pad {
        height: 140px;
    }
}