/* Fideltour standalone widget - Mexico Grand Hotels theme */

/* Modal wrapper (opens from your Join / Sign in links) */
.fideltour-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.fideltour-modal.is-open {
    display: flex;
}
.fideltour-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.fideltour-modal-box {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
}
.fideltour-modal-close {
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 2;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}
.fideltour-modal-close:hover {
    color: #333;
}
/* Inside the modal the box provides the frame, so drop the card shadow */
.fideltour-modal .fideltour-widget {
    box-shadow: none;
}

.fideltour-widget {
    --fideltour-gold: #c9a227;
    --fideltour-gold-dark: #b08d1f;
    --fideltour-text: #333333;
    --fideltour-text-light: #666666;
    --fideltour-border: #e0e0e0;
    --fideltour-bg: #ffffff;

    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: 25px 30px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--fideltour-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    color: var(--fideltour-text);
}

.fideltour-widget *,
.fideltour-widget *::before,
.fideltour-widget *::after {
    box-sizing: border-box;
}

/* Language toggle */
.fideltour-lang {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}
.fideltour-lang button {
    background: none;
    border: 1px solid var(--fideltour-border);
    color: var(--fideltour-text-light);
    font-size: 11px;
    padding: 3px 8px;
    cursor: pointer;
    line-height: 1.2;
}
.fideltour-lang button.active {
    background: var(--fideltour-gold);
    border-color: var(--fideltour-gold);
    color: #fff;
}

/* Header */
.fideltour-header {
    text-align: center;
    margin-bottom: 15px;
}
.fideltour-crown {
    width: 35px;
    height: 22px;
    margin: 0 auto 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M50 5 L60 25 L75 10 L70 35 L85 20 L75 45 L90 35 L70 55 L30 55 L10 35 L25 45 L15 20 L30 35 L25 10 L40 25 Z' fill='%23c9a227'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.fideltour-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--fideltour-text);
    margin: 0;
    line-height: 1.3;
}
.fideltour-title .gold {
    color: var(--fideltour-gold);
}
.form-subtitle {
    text-align: center;
    color: var(--fideltour-text-light);
    font-size: 13px;
    margin: 0 0 18px 0;
}

/* Tabs */
.tab-content {
    display: none;
    animation: ftFadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes ftFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Forms */
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    color: var(--fideltour-text);
    font-size: 12px;
}
.form-group label .required {
    color: var(--fideltour-gold);
}
.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--fideltour-border);
    border-radius: 0;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4;
    color: var(--fideltour-text);
    background: var(--fideltour-bg);
}
.form-control:focus {
    outline: none;
    border-color: var(--fideltour-gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.1);
}
.form-control::placeholder {
    color: #adb5bd;
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 10px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--fideltour-text);
}
.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    accent-color: var(--fideltour-gold);
    cursor: pointer;
}
.checkbox-label span {
    line-height: 1.4;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
}
.btn-primary {
    background: var(--fideltour-gold);
    color: #fff;
}
.btn-primary:hover {
    background: var(--fideltour-gold-dark);
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background: #5a6268;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.btn-loader {
    display: inline-block;
}

/* Footer links */
.form-footer {
    margin-top: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.form-footer a {
    color: var(--fideltour-gold);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}
.form-footer a:hover {
    text-decoration: underline;
    color: var(--fideltour-gold-dark);
}
.form-footer .separator {
    color: var(--fideltour-text-light);
    font-size: 12px;
}
.register-footer {
    justify-content: flex-start;
}
.register-footer .btn {
    min-width: 100px;
}

/* Messages */
.fideltour-message {
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.4;
    display: none;
}
.fideltour-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.fideltour-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.fideltour-message.info {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Logged-in user panel */
.fideltour-user-panel {
    text-align: center;
    padding: 10px 0;
}
.user-info-details {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    text-align: left;
}
.user-info-details p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--fideltour-text-light);
}
.user-info-details strong {
    color: var(--fideltour-text);
}
.loyalty-status {
    margin-top: 20px;
    padding: 12px;
    background: #d4edda;
    color: #155724;
    text-align: center;
    font-weight: 500;
}
.form-description {
    color: var(--fideltour-text-light);
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .fideltour-widget {
        padding: 20px 15px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .fideltour-title {
        font-size: 20px;
    }
    .register-footer {
        flex-direction: column;
        gap: 12px;
    }
    .register-footer .btn {
        width: 100%;
    }
}
