/* Elementals Laundry – Schedule Form Styles */

.els-form-wrap {
    width: 100%;
}
.els-form-title {
    font-family: var(--dd-font-heading, 'Poppins', sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dd-dark, #111827);
    margin-bottom: 6px;
}
.els-form-subtitle {
    font-size: .9rem;
    color: var(--dd-text-light, #6b7280);
    margin-bottom: 24px;
}
.els-form-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
}
.els-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.els-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.els-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.els-col { display: flex; flex-direction: column; }
.els-col--full { grid-column: 1 / -1; }
.els-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--dd-dark, #111827);
    margin-bottom: 6px;
    font-family: var(--dd-font-heading, 'Poppins', sans-serif);
}
.els-req { color: #ef4444; }
.els-input {
    padding: 11px 14px;
    border: 2px solid var(--dd-border, #e5e7eb);
    border-radius: 10px;
    font-size: .9rem;
    font-family: var(--dd-font-sans, sans-serif);
    color: var(--dd-dark, #111827);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}
.els-input:focus {
    border-color: var(--dd-primary, #1a56db);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.els-input.els-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.els-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.els-textarea { resize: vertical; min-height: 90px; }
.els-field-error {
    font-size: .75rem;
    color: #ef4444;
    margin-top: 4px;
    min-height: 18px;
}

/* ─── Time Slots ─────────────────────────────────────────── */
.els-time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.els-time-chip {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.els-time-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.els-time-chip span {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--dd-border, #e5e7eb);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--dd-text, #374151);
    background: var(--dd-bg-light, #f9fafb);
    transition: all .18s;
    user-select: none;
}
.els-time-chip input:checked + span {
    background: var(--dd-primary, #1a56db);
    border-color: var(--dd-primary, #1a56db);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,86,219,.3);
}
.els-time-chip:hover span {
    border-color: var(--dd-primary, #1a56db);
    color: var(--dd-primary, #1a56db);
}

/* ─── Submit Button ──────────────────────────────────────── */
.els-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    font-size: 1rem;
    padding: 14px 24px;
}
.els-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}
.els-spinner {
    animation: els-spin .8s linear infinite;
}
@keyframes els-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
    .els-row { grid-template-columns: 1fr; }
    .els-col--full { grid-column: 1; }
}

/* ─── Schedule Page ──────────────────────────────────────── */
.dd-schedule-page {
    padding: 64px 0;
}
.dd-schedule-page .dd-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
.dd-schedule-page__info h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}
.dd-schedule-page__info p {
    color: var(--dd-text-light, #6b7280);
    margin-bottom: 16px;
}
.dd-schedule-page__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.dd-schedule-page__feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(26,86,219,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dd-primary, #1a56db);
    flex-shrink: 0;
}
.dd-schedule-form-card {
    background: #fff;
    border: 1px solid var(--dd-border, #e5e7eb);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(26,86,219,.08);
    position: sticky;
    top: 88px;
}
@media (max-width: 900px) {
    .dd-schedule-page .dd-container { grid-template-columns: 1fr; }
    .dd-schedule-form-card { position: static; }
}

/* ─── Honeypot: must be invisible to real users ─────────── */
.els-hp {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* ─── Loading state on btn-loading ──────────────────────── */
.els-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ─── Success state — wide enough for tracking box ──────── */
.els-success {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
}
.els-success-content {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    color: #065f46;
}
.els-success-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 10px;
}
.els-success-content p {
    font-weight: 600;
    margin-bottom: 0;
    font-size: .95rem;
}

/* Tracking ID box shown on success */
.els-tracking-id-box {
    background: #f0f7ff;
    border: 2px solid #bfdbfe;
    border-radius: 14px;
    padding: 20px;
    margin: 18px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.els-tracking-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
}
.els-tracking-id {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a56db;
    letter-spacing: .1em;
}
.els-copy-btn {
    background: none;
    border: 1.5px solid #bfdbfe;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 700;
    color: #1a56db;
    cursor: pointer;
    transition: all .18s;
}
.els-copy-btn:hover { background: #1a56db; color: #fff; border-color: #1a56db; }
.els-track-link {
    font-size: .85rem;
    margin-top: 2px;
}
.els-tracking-hint {
    font-size: .78rem;
    color: #6b7280;
    margin: 0;
}

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 420px) {
    .els-tracking-id { font-size: 1.15rem; }
    .els-voice-trigger-btn span { display: none; }
}
