/* assets/css/order-form.css */

.mgh-order-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Campos de formulario */
.mgh-form-section {
    margin-bottom: 1.5rem;
}

.mgh-form-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.mgh-form-section input[type="text"],
.mgh-form-section input[type="email"],
.mgh-form-section input[type="tel"],
.mgh-form-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f5f5f5;
}

/* Phone input styling */
.phone-section .phone-inputs {
    display: flex;
    gap: 1rem;
}

.phone-section select {
    width: 40%;
}

.phone-input-wrapper {
    position: relative;
    flex: 1;
}

.phone-input-wrapper .dial-code {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.phone-input-wrapper input {
    padding-left: 5.3rem !important;
}

/* Switch styling */
.mgh-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.mgh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mgh-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.mgh-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.mgh-switch input:checked + .mgh-slider {
    background-color: #2196F3;
}

.mgh-switch input:checked + .mgh-slider:before {
    transform: translateX(26px);
}

.mgh-switch-label {
    margin-left: 70px;
}

/* Botón de envío */
.mgh-submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: #ff9100; /* Cambiado a naranja */
    color: white;
    border: none;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.mgh-submit-btn:hover {
    background: #e68200; /* Naranja más oscuro */
}

/* Overlay de procesamiento */
.mgh-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.mgh-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.mgh-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff9100; /* Cambiado a naranja */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* assets/css/form-order.css (new styles) */

/* Sección de tareas (registro/renovación) */
.task-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.task-buttons input[type="radio"] {
    display: none;
}

.task-btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.task-buttons input[type="radio"]:checked + .task-btn {
    background: #ff9100; /* Cambiado a naranja */
    color: white;
    border-color: #ff9100;
}

/* Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-option input[type="radio"] {
    display: none;
}

.product-card {
    display: block;
    padding: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.product-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff9100;
}

.product-card .price del {
    opacity: 0.7;
    font-weight: 500;
}

.product-card .credits {
    color: #666;
}

.product-option input[type="radio"]:checked + .product-card {
    border-color: #ff9100; /* Cambiado a naranja */
    box-shadow: 0 4px 8px rgba(255, 145, 0, 0.2); /* Cambiado a naranja */
}

.product-option[data-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option input[type="radio"] {
    display: none;
}

.mgh-form-section .payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
}

.payment-card .payment-icon {
    max-height: 35px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.payment-card .payment-title {
    font-size: 1.3rem;
    line-height: 1.5rem;
    color: #666;
}

.close-btn {
    padding: 10px 5px;
    border-radius: 10px;
    min-width: 100px;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: #ff9100;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}