/* Multi-City Form Styles */

.multi-city-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-city {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-field .required {
    color: #ef4444;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-label:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.radio-label input[type="radio"]:checked {
    accent-color: #3b82f6;
}

.radio-label span {
    font-size: 14px;
    color: #374151;
}

/* Signature Pad */
.signature-pad-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signature-canvas {
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    cursor: crosshair;
    display: block;
    width: 100%;
    max-width: 400px;
}

.signature-buttons {
    display: flex;
    gap: 10px;
}

.btn-clear {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear:hover {
    background: #e5e7eb;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.dynamic-table thead {
    background: #f9fafb;
}

.dynamic-table th {
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #d1d5db;
}

.dynamic-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dynamic-table td input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.dynamic-table td input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dynamic-table .actions {
    text-align: right;
}

.btn-remove-row {
    padding: 6px 12px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-remove-row:hover {
    background: #fecaca;
}

.btn-add-row {
    padding: 10px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-add-row:hover {
    background: #059669;
}

/* Help Text */
.help-text {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    justify-content: space-between;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-prev,
.btn-next {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-prev:hover,
.btn-next:hover {
    background: #e5e7eb;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    margin-left: auto;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.disclaimer {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .multi-city-form {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit {
        margin-left: 0;
    }

    .radio-group {
        gap: 10px;
    }

    .signature-canvas {
        max-width: 100%;
    }

    .dynamic-table {
        font-size: 12px;
    }

    .dynamic-table th,
    .dynamic-table td {
        padding: 8px;
    }
}

/* Error States */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #ef4444;
}

.form-field.error::after {
    content: attr(data-error);
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading State */
.form-field.loading input,
.form-field.loading select,
.form-field.loading textarea {
    opacity: 0.6;
    pointer-events: none;
}
