/**
 * RSVP CSS - Sistema de confirmação de presença
 */

/* ==================== SEÇÃO RSVP ==================== */

.rsvp-section {
    padding: 8rem 2rem;
    background: var(--navy-dark);
    position: relative;
    margin-left: var(--sidebar-width);
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 90, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-container h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.rsvp-container > p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 3rem;
}

/* ==================== STEP DE SENHA ==================== */

.password-step {
    text-align: center;
    padding: 2rem 0;
}

.password-step h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.password-step > p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 2rem;
}

.password-input-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.password-input-group input {
    flex: 1;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    background: rgba(30, 58, 95, 0.3);
    border: 2px solid rgba(212, 175, 90, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--gold);
}

.password-input-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(30, 58, 95, 0.5);
}

.password-input-group input::placeholder {
    color: rgba(212, 175, 90, 0.5);
}

.password-input-group button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-normal);
}

.password-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 90, 0.3);
}

.password-error {
    color: var(--error);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

.password-error.show {
    display: block;
}

/* ==================== STEP DE CONFIRMAÇÃO ==================== */

.confirmation-step {
    display: none;
}

.confirmation-step.show {
    display: block;
}

/* ==================== BOAS-VINDAS DO CONVIDADO ==================== */

.guest-welcome {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 90, 0.1);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(212, 175, 90, 0.2);
}

.guest-welcome h3 {
    font-family: var(--font-primary);
    font-size: 1.9rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.guest-welcome p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(245, 240, 232, 0.8);
}

/* ==================== LISTA DE MEMBROS DA FAMÍLIA ==================== */

.family-members-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.member-card {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(212, 175, 90, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: left;
}

.member-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 90, 0.1);
}

.member-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
}

/* ==================== BOTÕES DE CONFIRMAÇÃO ==================== */

.member-confirm-btns {
    display: flex;
    gap: 0.6rem;
}

.member-confirm-btns button {
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-confirm-yes {
    background: linear-gradient(135deg,
        rgba(80, 115, 160, 0.75) 0%,
        rgba(60, 95, 140, 0.85) 50%,
        rgba(80, 115, 160, 0.75) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(60, 95, 140, 0.3);
}

.btn-confirm-yes:hover {
    background: linear-gradient(135deg,
        rgba(80, 115, 160, 0.9) 0%,
        rgba(60, 95, 140, 1) 50%,
        rgba(80, 115, 160, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 95, 140, 0.4);
}

.btn-confirm-yes.active {
    background: linear-gradient(135deg,
        rgba(60, 100, 160, 0.95) 0%,
        rgba(40, 80, 140, 1) 50%,
        rgba(60, 100, 160, 0.95) 100%);
    box-shadow: 0 4px 15px rgba(40, 80, 140, 0.5);
}

.btn-confirm-no {
    background: linear-gradient(135deg,
        rgba(180, 80, 80, 0.75) 0%,
        rgba(160, 60, 60, 0.85) 50%,
        rgba(180, 80, 80, 0.75) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(160, 60, 60, 0.3);
}

.btn-confirm-no:hover {
    background: linear-gradient(135deg,
        rgba(180, 80, 80, 0.9) 0%,
        rgba(160, 60, 60, 1) 50%,
        rgba(180, 80, 80, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 60, 60, 0.4);
}

.btn-confirm-no.active {
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.9) 0%,
        rgba(192, 57, 43, 1) 50%,
        rgba(231, 76, 60, 0.9) 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ==================== PERGUNTAS DO MEMBRO ==================== */

.member-questions {
    display: none;
    margin-top: 1rem;
}

.member-questions.show {
    display: block;
}

.question-group {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(10, 22, 40, 0.4);
    border-radius: var(--border-radius-sm);
}

.question-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.question-label .required {
    color: var(--error);
    margin-left: 3px;
}

/* ==================== OPÇÕES DE RESPOSTA ==================== */

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(30, 58, 95, 0.5);
    border: 1px solid rgba(212, 175, 90, 0.2);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cream);
    transition: var(--transition-normal);
}

.question-options label:hover {
    border-color: var(--gold);
    background: rgba(30, 58, 95, 0.7);
}

.question-options input[type="radio"],
.question-options input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

.question-options input[type="radio"]:checked + span,
.question-options input[type="checkbox"]:checked + span {
    color: var(--gold);
    font-weight: 500;
}

.question-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: rgba(30, 58, 95, 0.5);
    border: 1px solid rgba(212, 175, 90, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.question-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ==================== PERGUNTAS GERAIS DA FAMÍLIA ==================== */

.family-questions-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 90, 0.2);
}

.family-questions-section h4 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 1rem;
    text-align: center;
}

/* ==================== MENSAGEM PARA OS NOIVOS ==================== */

.guest-message-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 90, 0.2);
    text-align: left;
}

.guest-message-section h4 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
    text-align: center;
}

.guest-message-section .message-hint {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    text-align: center;
    margin-bottom: 1rem;
}

.guest-message-section textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(212, 175, 90, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition-normal);
}

.guest-message-section textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(30, 58, 95, 0.5);
}

.guest-message-section textarea::placeholder {
    color: rgba(245, 240, 232, 0.5);
}

.guest-message-section .message-counter {
    display: block;
    text-align: right;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.5);
    margin-top: 0.5rem;
}

/* ==================== MENSAGEM DE SUCESSO ==================== */

.success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--border-radius-md);
}

.success-message.show {
    display: block;
}

.success-message h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.success-message p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--cream);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .rsvp-section {
        margin-left: 0;
        padding: 4rem 1.5rem;
        padding-bottom: 100px;
    }

    .password-input-group {
        flex-direction: column;
    }

    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-confirm-btns {
        width: 100%;
    }

    .member-confirm-btns button {
        flex: 1;
    }
}
