/* E-cab Standalone Quote Form Stylesheet */

.ecab-quote-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ecab-quote-form-container * {
    box-sizing: border-box;
}

.ecab-quote-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.ecab-quote-form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.ecab-form-section {
    margin-bottom: 35px;
}

.ecab-form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecab-form-section-title i {
    font-size: 14px;
}

.ecab-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .ecab-form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ecab-form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ecab-grid-span-all {
        grid-column: 1 / -1;
    }
}

.ecab-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecab-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ecab-form-group input[type="text"],
.ecab-form-group input[type="email"],
.ecab-form-group input[type="tel"],
.ecab-form-group input[type="date"],
.ecab-form-group input[type="time"],
.ecab-form-group input[type="number"],
.ecab-form-group select,
.ecab-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.ecab-form-group input:hover,
.ecab-form-group select:hover,
.ecab-form-group textarea:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.ecab-form-group input:focus,
.ecab-form-group select:focus,
.ecab-form-group textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.ecab-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Extra Stops Styles */
.ecab-stops-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.ecab-stop-item {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: ecabFadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ecab-stop-item .ecab-form-group {
    flex: 1;
}

.ecab-btn-remove-stop {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ecab-btn-remove-stop:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.ecab-btn-add-stop {
    align-self: flex-start;
    background: #f1f5f9;
    color: #475569;
    border: 1px dashed #cbd5e1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.ecab-btn-add-stop:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Submit Action Styles */
.ecab-form-actions {
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ecab-btn-submit {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ecab-btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.ecab-btn-submit:active {
    transform: translateY(0);
}

.ecab-btn-submit:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loading Spinner */
.ecab-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ecabSpin 0.8s ease-in-out infinite;
}

.ecab-btn-submit:disabled .ecab-spinner {
    display: inline-block;
    border-top-color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
}

/* Alert Notification Messages */
.ecab-form-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: none;
    animation: ecabFadeIn 0.3s ease forwards;
}

.ecab-form-message.success {
    display: block;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ecab-form-message.error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Keyframes animations */
@keyframes ecabSpin {
    to { transform: rotate(360deg); }
}

@keyframes ecabFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ecabFadeInScale {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive Customizations */
@media (max-width: 767px) {
    .ecab-quote-form-container {
        padding: 24px 16px;
        margin: 20px 10px;
    }
}
