/* Starter Mail — Frontend Forms */
:root {
    --stm-accent: #c8a97e;
    --stm-dark: #2c2c2c;
    --stm-text: #555;
    --stm-bg: #f9f7f4;
    --stm-error: #d63031;
    --stm-success: #00b894;
}

.stm-form {
    /* Defaults — overridden by inline vars from settings */
    --stm-accent: #c8a97e;
    --stm-btn-bg: #2c2c2c;
    --stm-btn-text: #ffffff;
    --stm-btn-r: 8px;
    --stm-input-r: 8px;
    --stm-input-b: #dddddd;
    --stm-max-w: 600px;
    
    max-width: var(--stm-max-w);
    margin: 0 auto;
    font-family: inherit;
}
.stm-field {
    margin-bottom: 16px;
}
.stm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--stm-dark);
    margin-bottom: 5px;
    font-family: inherit;
}
.stm-field input,
.stm-field select,
.stm-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--stm-input-b);
    border-radius: var(--stm-input-r);
    background: #fff;
    color: var(--stm-dark);
    transition: border-color .2s;
    box-sizing: border-box;
}
.stm-field input:focus,
.stm-field select:focus,
.stm-field textarea:focus {
    outline: none;
    border-color: var(--stm-accent);
    box-shadow: 0 0 0 2px rgba(200,169,126,.15);
}

/* Row layouts */
.stm-row {
    display: flex;
    gap: 16px;
}
.stm-half { flex: 1; }
.stm-third { flex: 1; }

/* Honeypot */
.stm-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Button */
.stm-submit { margin-top: 20px; }
.stm-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--stm-btn-text);
    background: var(--stm-btn-bg);
    border: none;
    border-radius: var(--stm-btn-r);
    cursor: pointer;
    transition: background .2s, opacity .2s;
    letter-spacing: .3px;
}
.stm-btn:hover { background: var(--stm-accent); }
.stm-btn:disabled { opacity: .5; cursor: not-allowed; }
.stm-btn-booking { background: var(--stm-accent); }
.stm-btn-booking:hover { background: var(--stm-btn-bg); }

/* Status messages */
.stm-status {
    margin-top: 12px;
    font-size: 14px;
    font-family: inherit;
    min-height: 20px;
}
.stm-status.stm-success { color: var(--stm-success); font-weight: 600; }
.stm-status.stm-error { color: var(--stm-error); font-weight: 600; }
.stm-status.stm-loading { color: var(--stm-text); font-style: italic; }

/* Subscribe form — inline */
.stm-subscribe-form { max-width: 480px; }
.stm-subscribe-row {
    display: flex;
    gap: 10px;
}
.stm-subscribe-row input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--stm-input-b);
    border-radius: var(--stm-input-r);
    box-sizing: border-box;
}
.stm-subscribe-row input:focus {
    outline: none;
    border-color: var(--stm-accent);
}

/* Responsive */
@media (max-width: 600px) {
    .stm-row { flex-direction: column; gap: 0; }
    .stm-subscribe-row { flex-direction: column; gap: 10px; }
    .stm-btn { width: 100%; text-align: center; }
}


/* Star Rating */
.stm-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
    overflow: visible;
}
.stm-stars input { display: none; }
.stm-stars label {
    font-size: 28px;
    color: #d1d4dc;
    cursor: pointer;
    transition: color .15s;
    line-height: 1;
    display: block !important;
    margin-bottom: 0 !important;
    padding: 0 2px;
}
.stm-stars label:hover,
.stm-stars label:hover ~ label,
.stm-stars input:checked ~ label {
    color: #f5a623;
}

/* Checkbox label */
.stm-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer;
}
.stm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--stm-accent);
    flex-shrink: 0;
}
