/**
 * Estimate Scheduler Frontend Form Styling
 */

.est-sched-container {
    max-width: 650px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3338;
}

.est-sched-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.est-sched-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.est-sched-subtitle {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
}

.est-sched-field-group {
    margin-bottom: 18px;
}

.est-sched-field-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.est-required {
    color: #e11d48;
    font-weight: bold;
}

.est-sched-field-group input,
.est-sched-field-group select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.est-sched-field-group input:focus,
.est-sched-field-group select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.est-sched-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.est-sched-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 14px;
}

.est-sched-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 20px 0;
}

.est-sched-divider::before,
.est-sched-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.est-sched-divider span {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.est-sched-submit-wrap {
    margin-top: 24px;
    text-align: center;
}

.est-sched-button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.est-sched-button:hover {
    background: #1d4ed8;
}

.est-sched-button:active {
    transform: translateY(1px);
}

.est-sched-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.est-sched-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: est-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes est-spin {
    to { transform: rotate(360deg); }
}

.est-sched-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.est-sched-alert.est-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.est-sched-alert.est-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.est-sched-alert.est-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

@media (max-width: 600px) {
    .est-sched-card {
        padding: 20px;
    }
    .est-sched-grid-2,
    .est-sched-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
