/* ============================================
   Pousada Santana - Check-in Público
   Estética: Refined Hospitality
   Tipografia: Playfair Display + DM Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    /* Paleta da marca */
    --brand-bordo: #820000;
    --brand-bordo-dark: #5e0000;
    --brand-bordo-light: #a52a2a;
    --brand-azul: #1B2A4A;
    --brand-azul-light: #2c3e5e;
    --brand-marrom: #542828;

    /* Superfícies */
    --surface-bg: #f7f4f2;
    --surface-card: #ffffff;
    --surface-warm: #fdf8f6;
    --surface-accent: #faf0ee;
    --border-soft: #e8ddd8;
    --border-accent: #d4b8b0;

    /* Texto */
    --text-primary: #2a1f1f;
    --text-secondary: #6b5c5c;
    --text-muted: #9a8d8d;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(42, 31, 31, 0.06);
    --shadow-md: 0 4px 12px rgba(42, 31, 31, 0.08);
    --shadow-lg: 0 8px 30px rgba(42, 31, 31, 0.12);
    --shadow-card: 0 10px 40px rgba(42, 31, 31, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--brand-azul);
    background-image:
        radial-gradient(ellipse at 30% 0%, rgba(130,0,0,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(44,62,94,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(130,0,0,0.05) 0%, transparent 70%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.checkin-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER / LOGO ===== */
.checkin-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.checkin-header img {
    max-width: 210px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.3s;
}

.checkin-header img:hover {
    opacity: 1;
}

.checkin-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0 0;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== CARD PRINCIPAL ===== */
.checkin-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    background: var(--surface-card);
}

.checkin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-bordo) 0%, var(--brand-bordo-light) 50%, var(--brand-bordo) 100%);
}

.checkin-card .card-body {
    padding: 2.25rem 2rem;
    background: var(--surface-card);
}

.checkin-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brand-azul);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.checkin-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brand-azul);
    font-weight: 600;
}

.checkin-card h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--brand-marrom);
    font-size: 0.92rem;
}

/* ===== FORMULÁRIO ===== */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    border-color: var(--border-soft);
    border-radius: 10px;
    transition: all 0.25s;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
}

.form-control-lg, .form-select-lg {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-bordo-light);
    box-shadow: 0 0 0 3px rgba(130, 0, 0, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.invalid-feedback {
    font-size: 0.8rem;
}

/* ===== SEPARADOR ===== */
.checkin-card hr {
    border-color: var(--border-soft);
    margin: 1.5rem 0;
    position: relative;
}

/* ===== BOTÕES ===== */
.btn-success {
    background: linear-gradient(135deg, var(--brand-bordo) 0%, var(--brand-bordo-dark) 100%) !important;
    border: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(130, 0, 0, 0.3);
    font-family: 'DM Sans', sans-serif;
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, var(--brand-bordo-dark) 0%, #4a0000 100%) !important;
    box-shadow: 0 6px 20px rgba(130, 0, 0, 0.4);
    transform: translateY(-1px);
}

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

.btn-outline-success {
    color: var(--brand-bordo) !important;
    border-color: var(--brand-bordo) !important;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s;
    font-family: 'DM Sans', sans-serif;
}

.btn-outline-success:hover {
    background: var(--brand-bordo) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(130, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
}

/* ===== CONSULTA DE RESERVA ===== */
.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

#resultado-consulta {
    text-align: left;
}

/* ===== ALERT ===== */
.alert-success {
    background: var(--surface-accent);
    border-color: var(--border-accent);
    color: var(--brand-marrom);
    border-radius: 10px;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fdf0f0;
    border-color: #e8c5c5;
    color: var(--brand-bordo);
    border-radius: 10px;
    font-size: 0.9rem;
}

/* ===== LINKS ===== */
a { color: var(--brand-bordo); transition: color 0.2s; }
a:hover { color: var(--brand-bordo-dark); }

/* ===== SUCCESS PAGE ===== */
.text-success {
    color: var(--brand-bordo) !important;
}

.checkin-card .bi-check-circle-fill.text-success {
    color: #2d7a4f !important;
    filter: drop-shadow(0 4px 8px rgba(45, 122, 79, 0.2));
}

/* ===== FOOTER ===== */
.checkin-footer {
    text-align: center;
    margin-top: 1.75rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.checkin-footer p {
    margin: 3px 0;
}

.checkin-footer i {
    opacity: 0.7;
}

/* ===== SPINNER LOADING STATE ===== */
.btn-success .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 576px) {
    .checkin-container {
        padding: 1rem 0.75rem;
    }
    .checkin-card .card-body {
        padding: 1.5rem 1.25rem;
    }
    .checkin-header img {
        max-width: 170px;
    }
    .checkin-card h4 {
        font-size: 1.2rem;
    }
}
