/*
    EverAfter UI Components

    Shared:
    - Buttons
    - Cards
    - Inputs
    - Toasts

*/



/* =====================
   BUTTONS
===================== */


button,
.primary-button {


    font-family:

    "Montserrat",
    sans-serif;


    border:none;


    cursor:pointer;


    transition:

    all .3s ease;


}





.primary-button,
#btn-directions,
#btn-copy-address,
#submit-wish {


    background:

    var(--primary-color, #C9A227);


    color:white;


    padding:

    14px 28px;


    border-radius:

    40px;


    font-size:

    15px;


    font-weight:

    500;


    letter-spacing:

    .5px;


    box-shadow:

    0 8px 20px

    rgba(201,162,39,.25);


}




.primary-button:hover,
#btn-directions:hover,
#btn-copy-address:hover,
#submit-wish:hover {


    transform:

    translateY(-3px);


    box-shadow:

    0 12px 25px

    rgba(201,162,39,.35);


}







/* =====================
   SECONDARY BUTTON
===================== */


.secondary-button {


    background:

    transparent;


    color:

    var(--primary-color,#C9A227);


    border:

    1px solid

    var(--primary-color,#C9A227);


    padding:

    12px 25px;


    border-radius:

    30px;


}







/* =====================
   TEXT AREA
===================== */


textarea,
input {


    width:100%;


    padding:

    14px;


    border-radius:

    12px;


    border:

    1px solid #ddd;


    font-family:

    "Montserrat",
    sans-serif;


    margin-bottom:

    15px;


}



textarea {


    min-height:

    120px;


    resize:

    vertical;


}







/* =====================
   CARDS
===================== */


.card,
.wish-card,
.gallery-item {


    background:white;


    border-radius:

    20px;


    padding:

    20px;


    box-shadow:

    0 8px 25px

    rgba(0,0,0,.08);


}







/* =====================
   TOAST
===================== */


#toast {


    position:fixed;


    bottom:30px;


    left:50%;


    transform:

    translateX(-50%);


    background:#333;


    color:white;


    padding:

    12px 25px;


    border-radius:

    30px;


    opacity:0;


    pointer-events:none;


    transition:.3s;


}



#toast.show {


    opacity:1;


}


/* =====================
   RSVP FORM
===================== */
.rsvp-card label {
    display: block;
    margin: 0 0 6px;
    text-align: left;
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-secondary, #6B6258);
}

.rsvp-card select,
.rsvp-card input,
.rsvp-card textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 16px; /* stops iOS zooming into the field */
}

.rsvp-card textarea {
    min-height: 96px;
    resize: vertical;
}

.rsvp-card .rsvp-message:empty {
    display: none;
}

.rsvp-card .rsvp-message {
    margin: 0 0 4px;
    font-size: var(--text-sm, 0.875rem);
    color: var(--danger, #D9534F);
}

.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.rsvp-buttons button {
    width: 100%;
    min-height: 48px;
    margin: 0; /* .primary-button adds its own top margin */
}

.rsvp-buttons button:disabled {
    opacity: 0.6;
}

/* =====================
   SEATING CARD
===================== */
.seating-card .table-number {
    margin: 12px 0 16px;
    font-family: var(--font-heading, inherit);
    font-size: var(--text-2xl, 2.5rem);
    line-height: 1.1;
    color: var(--primary-color, #C9A227);
}