/* Hogarenas Forms Styling */

.hogarenas-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #d4b896 0%, #c9a876 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hogarenas-registration-form,
.hogarenas-code-registration-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #c9a876;
    background: #fff;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    min-width: 16px;
}

.terms-text {
    font-size: 11px;
    line-height: 1.6;
    color: #444;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.terms-text a {
    color: #8b0000;
    text-decoration: underline;
}

.hogarenas-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #dc143c 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
}

.hogarenas-submit-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

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

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.login-link a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Messages */
.hogarenas-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hogarenas-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hogarenas-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Code Form Specific Styling */
.hogarenas-code-form {
    max-width: 400px;
    text-align: center;
}

.hogarenas-code-form .form-group label {
    font-size: 13px;
    color: #333;
}

.hogarenas-code-form input[type="text"] {
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 600px) {
    .hogarenas-form-wrapper {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Selection Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.product-item {
    background: white;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-item.selected {
    border-color: #dc143c;
    background: #fff5f5;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.product-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-item p {
    display: none; /* Hidden as images contain text */
}

/* Back Button */
.hogarenas-back-btn {
    flex: 1;
    padding: 14px 20px;
    background: #888;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hogarenas-back-btn:hover {
    background: #666;
}

/* Multi-step form */
.form-step {
    width: 100%;
}

/* Make submit button flex when next to back button */
.hogarenas-submit-btn[id="submit-btn"],
.hogarenas-submit-btn[id="code-submit-btn"] {
    flex: 1;
}

/* Centered button style */
.hogarenas-centered-btn {
    width: auto;
    min-width: 250px;
    display: inline-block;
}

/* Code Result Messages */
.code-result-message {
    text-align: center;
    padding: 60px 40px;
    border-radius: 10px;
}

.code-result-message h2 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-result-message.success-message h2 {
    color: #333;
}

.code-result-message.error-message h2 {
    color: rgba(218, 32, 44, 1);
}

/* My Codes Table */
.hogarenas-my-codes-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hogarenas-my-codes-wrapper h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.hogarenas-codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hogarenas-codes-table thead {
    background: linear-gradient(135deg, #d4b896 0%, #c9a876 100%);
}

.hogarenas-codes-table th {
    padding: 15px;
    text-align: left;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #c9a876;
}

.hogarenas-codes-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.hogarenas-codes-table tbody tr:hover {
    background: #f9f9f9;
}

.hogarenas-codes-table tbody tr:last-child td {
    border-bottom: none;
}

.total-codes {
    text-align: right;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
}

.total-codes strong {
    color: #dc143c;
    font-size: 18px;
}

.no-codes {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

@media (max-width: 600px) {
    .hogarenas-my-codes-wrapper {
        padding: 20px;
        margin: 20px;
    }
    
    .hogarenas-codes-table {
        font-size: 14px;
    }
    
    .hogarenas-codes-table th,
    .hogarenas-codes-table td {
        padding: 10px 5px;
    }
}


