/* Contenedor principal */
.form-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Estilos del formulario */
.appointment-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
}

/* Tabla de tarifas */
.fees-table-container {
    width: 400px;
    margin-top: 2rem;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fees-table th,
.fees-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.fees-table th {
    background-color: #f8f9fa;
    text-align: center;
    padding: 15px;
}

.fees-cell {
    font-size: 14px;
}

.fees-cell-price {
    text-align: right;
    white-space: nowrap;
}

/* Elementos del formulario */
table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 5px;
}

h3 {
    color: #333;
    margin: 0;
}

select, input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

select option[disabled] {
    font-weight: bold;
    background-color: #f0f0f0;
}

.required-asterisk {
    color: #dc3545;
    margin-left: 5px;
    vertical-align: middle;
}

.input-hint {
    font-size: 12px;
    color: #666;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Términos y condiciones */
.terms-container {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Botones */
.btn-submit, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-submit {
    background-color: #4682B4;
    color: white;
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn-cancel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.btn-submit:hover:not(:disabled) {
    background-color: #3a6d96;
}

.btn-cancel:hover {
    background-color: #e2e6ea;
}

/* Responsive design */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }

    .fees-table-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }

    .appointment-form {
        padding: 1rem;
    }

    input, select {
        font-size: 16px;
    }

    td[style*="width: 200px"] {
        width: 100% !important;
    }

    input[style*="width:250px"] {
        width: 100% !important;
    }

    .fees-table th,
    .fees-table td {
        padding: 8px;
        font-size: 14px;
    }
}