/**
 * RP Reservas - Minhas Reservas
 * Styling for customer reservation lookup widget
 */

.rp-mr-wrapper {
    max-width: 480px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rp-mr-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 25px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.rp-mr-card {
    background: #141414;
    border: 1.5px solid #4a0c10;
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s ease;
}

/* --- Form View --- */
.rp-mr-form-group {
    margin-bottom: 18px;
}

.rp-mr-label {
    display: block;
    font-size: 16px;
    color: #eee;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.rp-mr-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rp-mr-input-icon {
    position: absolute;
    left: 14px;
    color: #cba358;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
}

.rp-mr-input {
    width: 100%;
    height: 48px;
    background: #282828 !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0 15px 0 44px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.rp-mr-input:focus {
    border-color: #8c1d24 !important;
    box-shadow: 0 0 0 2px rgba(140, 29, 36, 0.3) !important;
    background: #2f2f2f !important;
}

.rp-mr-input::placeholder {
    color: #888;
}

.rp-mr-submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #6b0c13 0%, #450408 100%);
    border: 1.5px solid #e5b95f;
    border-radius: 8px;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.rp-mr-submit-btn:hover {
    background: linear-gradient(180deg, #871018 0%, #5a070c 100%);
    border-color: #ffd700;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107, 12, 19, 0.5);
}

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

.rp-mr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Footer Texts below Card --- */
.rp-mr-footer-info {
    margin-top: 22px;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.rp-mr-help-text {
    margin: 0 0 20px 0;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #dddddd;
}

.rp-mr-new-clients h4 {
    margin: 0 0 6px 0;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.rp-mr-new-clients p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #cccccc;
}

.rp-mr-new-clients a {
    color: #f2ce7d;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.rp-mr-new-clients a:hover {
    color: #ffffff;
}

/* --- Results View --- */
.rp-mr-results-view {
    display: none;
}

.rp-mr-results-header {
    border-bottom: 1px solid #333333;
    padding-bottom: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-mr-results-header p {
    margin: 0;
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.rp-mr-results-header strong {
    color: #f2ce7d;
    font-size: 16px;
    word-break: break-all;
}

.rp-mr-change-email-btn {
    background: rgba(229, 185, 95, 0.1);
    border: 1px solid #e5b95f;
    border-radius: 6px;
    color: #f2ce7d !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.rp-mr-change-email-btn:hover {
    background: #e5b95f;
    color: #1a1a1a !important;
    font-weight: 700;
}

.rp-mr-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 22px 0 12px 0;
}

/* Past Items */
.rp-mr-past-item {
    background: #1c1c1c;
    border: 1.5px solid #6b0c13;
    border-radius: 8px;
    padding: 13px 18px;
    margin-bottom: 10px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rp-mr-past-item:hover {
    border-color: #e5b95f;
    background: #282828;
    color: #ffffff !important;
    transform: translateX(3px);
}

.rp-mr-past-item .rp-mr-past-arrow {
    color: #e5b95f;
    font-size: 18px;
    font-weight: bold;
}

/* Upcoming Card */
.rp-mr-upcoming-card {
    background: #191919;
    border: 1.5px solid #6b0c13;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
}

.rp-mr-upcoming-info {
    margin-bottom: 14px;
}

.rp-mr-upcoming-row {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #f5f5f5;
    line-height: 1.6;
    margin: 4px 0;
}

.rp-mr-upcoming-row strong {
    color: #e5b95f;
}

.rp-mr-countdown {
    color: #ffffff;
    background: #6b0c13;
    border: 1px solid #e5b95f;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    float: right;
    margin-top: -24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.rp-mr-details-btn {
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(180deg, #6b0c13 0%, #450408 100%);
    border: 1.5px solid #e5b95f;
    border-radius: 8px;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.rp-mr-details-btn:hover {
    background: linear-gradient(180deg, #871018 0%, #5a070c 100%);
    border-color: #ffd700;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(107, 12, 19, 0.5);
    transform: translateY(-1px);
}

.rp-mr-empty-msg {
    color: #aaaaaa;
    font-size: 13px;
    font-style: italic;
    margin: 8px 0 16px 0;
    font-family: 'Playfair Display', serif;
}

/* --- Feedback & Alerts --- */
.rp-mr-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}

.rp-mr-alert-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid #c0392b;
    color: #ff8577;
}

/* --- Details Modal --- */
.rp-mr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000010 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.rp-mr-modal-content {
    background: #191919;
    border: 1.5px solid #4a0c10;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    padding: 25px 22px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    color: #fff;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.rp-mr-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.rp-mr-modal-close:hover {
    color: #ffffff;
}

.rp-mr-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #f2ce7d;
    margin: 0 0 15px 0;
    padding-right: 25px;
}

.rp-mr-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
    background: #111;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.rp-mr-modal-item label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-weight: bold;
}

.rp-mr-modal-item span {
    display: block;
    font-size: 14px;
    color: #eee;
    font-weight: 600;
}

#rp-mr-modal-id {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 1px;
}

#rp-mr-modal-status-badge {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rp-mr-modal-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-mr-modal-ticket-btn {
    background: #b70102;
    border: 1.5px solid #e5b95f;
    color: #ffffff !important;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 12px rgba(183, 1, 2, 0.4);
}

.rp-mr-modal-ticket-btn:hover {
    background: #d40203;
    border-color: #ffd700;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 2, 3, 0.5);
}

.rp-mr-modal-wa-btn {
    background: #25D366;
    border: 1px solid #1ebc59;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.rp-mr-modal-wa-btn:hover {
    background: #1ebc59;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Spinner */
.rp-mr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(242, 206, 125, 0.3);
    border-radius: 50%;
    border-top-color: #f2ce7d;
    animation: rpMrSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes rpMrSpin {
    to { transform: rotate(360deg); }
}
