/* AWF Mailer — Registration Form Styles */

.awfm-reg-wrap {
    max-width: 560px;
    margin: 28px auto;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(0,0,0,.12);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Header */
.awfm-reg-header {
    padding: 28px 32px;
    text-align: center;
    color: #fff;
}
.awfm-reg-icon  { font-size: 40px; display: block; margin-bottom: 8px; }
.awfm-reg-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #fff; line-height: 1.3; }
.awfm-reg-sub   { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); }

/* Body */
.awfm-reg-body { background: #fff; padding: 28px 32px 24px; }

/* Field group */
.awfm-fg { margin-bottom: 16px; }
.awfm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.awfm-req { color: #e53e3e; margin-left: 2px; }

/* Inputs */
.awfm-field {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1d2327;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.awfm-field:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.awfm-field:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}
.awfm-field::placeholder { color: #9ca3af; }
textarea.awfm-field { resize: vertical; min-height: 72px; line-height: 1.5; }
select.awfm-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Slot picker */
.awfm-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 4px;
}
.awfm-slot-card { cursor: pointer; display: block; }
.awfm-slot-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.awfm-slot-inner {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: all .15s;
    background: #fff;
    position: relative;
}
.awfm-slot-inner:hover { border-color: var(--sc, #185FA5); background: #f0f7ff; }
.awfm-slot-card input:checked + .awfm-slot-inner {
    border-color: var(--sc, #185FA5);
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(24,95,165,.18);
}
.awfm-slot-card input:checked + .awfm-slot-inner::after {
    content: '✓';
    position: absolute;
    top: 5px; right: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sc, #185FA5);
}
.awfm-slot-day  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #9ca3af; margin-bottom: 3px; }
.awfm-slot-time { font-size: 15px; font-weight: 700; color: var(--sc, #185FA5); margin-bottom: 3px; }
.awfm-slot-note { font-size: 11px; color: #6b7280; margin-bottom: 5px; font-style: italic; }
.awfm-slot-seats{ font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 20px; display: inline-block; }
.awfm-open { background: #EAF3DE; color: #3B6D11; }
.awfm-low  { background: #FCEBEB; color: #A32D2D; }

/* Consent */
.awfm-consent-fg { margin-bottom: 18px; }
.awfm-consent-lbl {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12px; color: #6b7280; line-height: 1.6; cursor: pointer;
}
.awfm-chk { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: #185FA5; cursor: pointer; }

/* Submit */
.awfm-submit-wrap { margin-bottom: 10px; }
.awfm-submit-btn {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
}
.awfm-submit-btn:hover   { opacity: .9; }
.awfm-submit-btn:active  { transform: scale(.99); }
.awfm-submit-btn:disabled{ opacity: .65; cursor: not-allowed; }
.awfm-note { text-align: center; font-size: 12px; color: #9ca3af; margin: 0; }

/* Messages */
.awfm-msg {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.awfm-msg-ok  { background: #EAF3DE; color: #27500A; border: 1px solid #C0DD97; }
.awfm-msg-err { background: #FCEBEB; color: #791F1F; border: 1px solid #F7C1C1; }

/* Success */
.awfm-success { text-align: center; padding: 12px 0 4px; }
.awfm-success-icon  { font-size: 52px; margin-bottom: 14px; display: block; }
.awfm-success-title { font-size: 18px; font-weight: 700; color: #1d2327; margin: 0 0 8px; line-height: 1.4; }
.awfm-success-sub   { font-size: 14px; color: #6b7280; margin: 0 0 18px; }
.awfm-socials { display: flex; flex-direction: column; gap: 10px; }
.awfm-soc {
    display: block; padding: 12px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; text-align: center;
    transition: opacity .15s;
}
.awfm-soc:hover { opacity: .88; }
.awfm-soc-wa { background: #25D366; color: #fff; }
.awfm-soc-tg { background: #0088CC; color: #fff; }
.awfm-soc-fb { background: #1877F2; color: #fff; }

@media (min-width: 480px) {
    .awfm-socials { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .awfm-soc     { flex: 1; min-width: 140px; }
}
@media (max-width: 420px) {
    .awfm-reg-header { padding: 22px 20px; }
    .awfm-reg-body   { padding: 22px 16px 18px; }
    .awfm-slot-grid  { grid-template-columns: 1fr 1fr; }
}
