/**
 * Review Form & Confirmation Stylesheet
 * Hotel Website — Public review submission form (submit-review.php)
 * and confirmation page (review-confirmation.php)
 */

/* ============================================================
   REVIEW PAGE WRAPPER
   ============================================================ */
.review-page {
    background: #fafaf8;
    min-height: 80vh;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.review-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2a25 60%, #3a3228 100%);
    padding: 72px 20px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.review-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(139,115,85,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.review-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 500;
    color: #f5f0e8;
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.review-hero p {
    font-size: 16px;
    color: rgba(245, 240, 232, 0.72);
    margin: 0;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.65;
}

/* ============================================================
   FORM CONTAINER & CARD
   ============================================================ */
.review-form-container {
    padding: 48px 20px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.review-form-card {
    background: #fff;
    border: 1px solid #e8e4de;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
    .review-form-card { padding: 24px 20px; }
    .review-form-container { padding: 28px 16px 60px; }
}

/* ============================================================
   ROOM BADGE
   ============================================================ */
.room-selection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139,115,85,0.1), rgba(139,115,85,0.06));
    border: 1px solid rgba(139,115,85,0.3);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    color: #5a4632;
    font-weight: 600;
    margin-bottom: 28px;
}

.room-selection-badge i {
    color: #8b7355;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede9e3;
}

.form-section-title i {
    color: #8b7355;
    font-size: 16px;
}

.form-section-title .required {
    font-size: 14px;
    color: #c0392b;
    font-family: 'Jost', sans-serif;
}

.mt-30 { margin-top: 30px !important; }

/* ============================================================
   FORM LAYOUT
   ============================================================ */
.form-row.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 560px) {
    .form-row.two-columns { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM GROUPS & FIELDS
   ============================================================ */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d2a25;
    margin-bottom: 7px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d8d2ca;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    color: #1a1a1a;
    background: #fdfcfb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.12);
    background: #fff;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b7355' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Validation states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #27ae60;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9a9289;
    line-height: 1.5;
}

.required { color: #e74c3c; margin-left: 2px; }
.optional { font-size: 12px; color: #9a9289; font-weight: 400; text-transform: none; }

/* ============================================================
   STAR RATING WIDGET
   ============================================================ */
.rating-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star {
    font-size: 28px;
    color: #d8d2ca;
    transition: color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    user-select: none;
}

.star:hover,
.star.active,
.star.filled {
    color: #f39c12;
}

.star:hover {
    transform: scale(1.15);
}

.star.empty {
    color: #d8d2ca;
}

.star-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #5a4632;
    min-width: 90px;
}

/* ============================================================
   OPTIONAL CATEGORY RATINGS
   ============================================================ */
.optional-ratings {
    background: #faf8f5;
    border: 1px solid #ede9e3;
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 6px;
}

.optional-ratings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a25;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.optional-ratings-title i {
    color: #8b7355;
}

.optional-rating-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #ede9e3;
}

.optional-rating-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.optional-rating-label {
    font-size: 13px;
    color: #4a4540;
    font-weight: 600;
    width: 110px;
    flex-shrink: 0;
}

.optional-rating-item .star-rating .star {
    font-size: 20px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b7355 0%, #6f5b43 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 115, 85, 0.35);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading spinner inside submit button */
.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.submit-btn.loading .loading-spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    opacity: 0.8;
}

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

/* ============================================================
   UTILITY CLASSES (local, won't conflict with global)
   ============================================================ */
.text-center { text-align: center; }
.text-base { font-size: 14px; }
.text-gray-light { color: #9a9289; }

/* ============================================================
   ALERT OVERRIDES (public page context)
   ============================================================ */
.review-form-card .alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.55;
}

.review-form-card .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-form-card .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.review-form-card .alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   CONFIRMATION PAGE CLASSES
   (used by review-confirmation.php inline style fallback)
   ============================================================ */
.confirmation-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    max-width: 640px;
    margin: 0 auto;
}
