/* ===== MINIMALIST WEDDING INVITATION ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.3;
    color: #8b7355;
    background: 
        url('images/bg.png'),
        url('images/bg2.png'),
        #f5f0e8;
    background-repeat: repeat, repeat;
    min-height: 100vh;
    font-weight: 300;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    background: url('images/bg_container.png'), #ffffff;
    background-repeat: repeat;
    background-position: center;
    background-size: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 100vh;
}

/* ===== HEADER SECTION ===== */
.invitation-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.card {
    background: radial-gradient(
        circle at center 10%,
        #d9cfb5 40%,      /* Center color (solid) */
        rgba(217, 207, 181, 0.3) 100%  /* Fade out to transparent */
    );
    margin-top: 20px;
    margin-bottom: 40px;

    width: 100%;
    padding: 50px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.15), 0 2px 8px rgba(139, 115, 85, 0.1);
}

.logo {
    width: 280px;
    height: 280px;
    margin: 0 auto 10px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.names {
    white-space: nowrap;
    font-size: clamp(50px, 6vw, 70px);
    color: #8b7355;
    padding-bottom: 20px;
    font-family: "Bilbo Swash Caps", serif;
    font-weight: 500;
}

.date {
    font-size: 30px;
    color: #5D8E8B;
    margin-bottom: 8px;
    font-weight: 400;
}

.greeting {
    border: 2px solid #B8A082;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(184, 160, 130, 0.1);
}

.greeting h2.guest-names {
    font-size: 2rem;
    font-weight: 700;
    color: #8b7355;
    margin-top: 0;
    margin-bottom: 25px;
}

.invitation-text {
    font-size: 1.4rem;
    color: #8b7355;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.4;
}

.greeting .invitation-text {
    margin-bottom: 0;
}

/* ===== WEDDING DETAILS ===== */
.wedding-details {
    margin-bottom: 60px;
}

.event-info h2 {
    font-size: 2rem;
    text-align: center;
    color: #5D8E8B;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.info-item {
    padding: 30px 20px;
    border-bottom: 1px solid #e8dcc0;
    text-align: center;
}

.info-item h3 {
    font-size: 1.4rem;
    color: #5D8E8B;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #8b7355;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 300;
}

/* ===== GIFT SECTION ===== */
.gift-section {
    padding: 45px 40px;
    border-top: 2px solid #e8dcc0;
    text-align: center;
}

.gift-section h2,
.rsvp-section h2 {
    font-size: 1.8rem;
    color: #5D8E8B;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 1px;
}

.gift-section h2 {
    text-transform: uppercase;
}

.rsvp-section h2 {
    margin-bottom: 20px;
}

.gift-content {
    max-width: 600px;
    margin: 0 auto;
}

.gift-text,
.gift-recommendations {
    font-size: 1.2rem;
    color: #8b7355;
    font-weight: 300;
    line-height: 1.4;
}

.gift-text {
    margin-bottom: 25px;
}

.gift-recommendations {
    margin-top: 25px;
}

.bank-info {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e8dcc0;
    margin: 25px 0;
    font-size: 1.1rem;
    color: #8b7355;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

/* ===== RSVP SECTION ===== */
.rsvp-section {
    background: #faf8f5;
    padding: 50px 40px;
    border-top: 2px solid #e8dcc0;
}



.rsvp-section > p {
    text-align: center;
    font-size: 1.2rem;
    color: #8b7355;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.3;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FORM STYLING ===== */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: #8b7355;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Guest Details */
.guest-person {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 0;
    border: 1px solid #e8dcc0;
    margin-bottom: 25px;
    box-shadow: none;
}

.guest-person h4 {
    color: #8b7355;
    margin-bottom: 18px;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.child-person {
    background: #faf8f5;
    border-left: 4px solid #5D8E8B;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #8b7355;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.form-field input[type="text"],
.form-field input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8dcc0;
    border-radius: 0;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    font-weight: 300;
    background: #faf8f5;
}

.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus {
    outline: none;
    border-color: #5D8E8B;
    background: #ffffff;
}

/* Sections */
.children-section,
.travel-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8dcc0;
}

.children-section h3,
.travel-section h3 {
    font-size: 1.4rem;
    color: #5D8E8B;
    margin-bottom: 25px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Select Elements */
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8dcc0;
    border-radius: 0;
    font-size: 1.1rem;
    background: #faf8f5;
    color: #8b7355;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #5D8E8B;
    background: #ffffff;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 1px solid #e8dcc0;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 300;
    background: #ffffff;
    font-size: 1.2rem;
    gap: 15px;
}

.radio-label:hover {
    border-color: #5D8E8B;
    background-color: #f8f6f3;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    border: 2px solid #e8dcc0;
    border-radius: 50% !important;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    display: inline-block;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #5D8E8B;
    background-color: #5D8E8B;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ span {
    color: #5D8E8B;
    font-weight: 400;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    gap: 15px;
}

.checkbox-label:hover {
    background-color: #f8f6f3;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    border: 2px solid #e8dcc0;
    border-radius: 2px;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #5D8E8B;
    background-color: #5D8E8B;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    font-weight: bold;
}

/* Old meal-person styles removed - now using guest-person */

.allergy-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e8dcc0;
    border-radius: 0;
    font-size: 1.2rem;
    margin-top: 12px;
    transition: border-color 0.3s ease;
    font-weight: 300;
    background: #faf8f5;
}

.allergy-input:focus {
    outline: none;
    border-color: #5D8E8B;
    box-shadow: none;
    background: #ffffff;
}

/* Textarea */
textarea {
    width: 100%;
    min-height: 100px;
    padding: 18px;
    border: 1px solid #e8dcc0;
    border-radius: 0;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 300;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #faf8f5;
}

textarea:focus {
    outline: none;
    border-color: #5D8E8B;
    box-shadow: none;
    background: #ffffff;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: #5D8E8B;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #4a6f6c;
    box-shadow: 0 2px 8px rgba(93, 142, 139, 0.3);
}

/* ===== FOOTER ===== */
.invitation-footer {
    text-align: center;
    padding: 50px 20px 40px;
    background: transparent;
    border-top: 1px solid #e8dcc0;
    margin-top: 40px;
}

.invitation-footer p {
    font-size: 1.2rem;
    color: #8b7355;
    margin-bottom: 15px;
    font-weight: 300;
    line-height: 1.3;
}

.contact-info {
    font-size: 1.1rem;
    color: #8b7355;
    font-weight: 300;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-message {
    text-align: center;
    padding: 60px 30px;
    background: #faf8f5;
    border-radius: 0;
    border: none;
    border-top: 2px solid #e8dcc0;
}

.thank-you-message h1 {
    font-family: 'Bilbo Swash Caps', cursive;
    font-size: 2.5rem;
    color: #5D8E8B;
    margin-bottom: 30px;
    font-weight: 400;
}

.response-summary {
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    margin: 30px 0;
    text-align: left;
    box-shadow: none;
    border: 1px solid #e8dcc0;
}

.response-summary h2, .response-summary h3 {
    color: #8b7355;
    margin-bottom: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-prefs {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8dcc0;
    font-weight: 300;
}

.footer-text {
    font-size: 0.95rem;
    color: #8b7355;
    margin-top: 30px;
    font-weight: 300;
    line-height: 1.7;
}

/* ===== FORM VALIDATION ===== */
.is-invalid {
    border: 2px solid #dc3545 !important;
    border-radius: 6px;
}

.radio-group.is-invalid, 
.checkbox-group.is-invalid {
    padding: 10px;
    background: #fff3f4;
}

.form-field > .is-invalid {
    background-color: transparent;
    padding: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        margin: 20px 25px;
        padding: 25px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        max-width: none;
        width: calc(100% - 50px);
    }
    
    .card {
        padding: 30px 20px;
        margin-top: 10px;
    }
    
    .logo {
        width: 198px;
        height: 198px;
    }
    
    .names {
        font-size: clamp(40px, 8vw, 60px);
        padding-bottom: 15px;
    }
    
    .date {
        font-size: 24px;
    }
    
    .greeting h2.guest-names {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-item {
        padding: 25px 15px;
        border-bottom: 1px solid #e8dcc0;
    }
    
    .gift-section {
        padding: 35px 25px;
    }
    
    .rsvp-section {
        padding: 40px 25px;
    }
    
    .radio-group {
        gap: 12px;
    }
    
    .radio-label {
        padding: 12px 15px;
    }
    
    .thank-you-message h1 {
        font-size: 2rem;
    }
    
    .event-info h2 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 15px 20px;
        padding: 20px 15px;
        width: calc(100% - 40px);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    
    .card {
        padding: 25px 15px;
        margin-top: 5px;
    }
    
    .logo {
        width: 165px;
        height: 165px;
    }
    
    .names {
        font-size: clamp(35px, 10vw, 50px);
        padding-bottom: 10px;
    }
    
    .date {
        font-size: 22px;
    }
    
    .greeting h2.guest-names {
        font-size: 1.3rem;
    }
    
    .event-info h2 {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 35px;
    }
    
    .rsvp-section h2 {
        font-size: 1.4rem;
    }
    
    .info-item {
        padding: 20px 10px;
    }
    
    .gift-section {
        padding: 30px 20px;
    }
    
    .rsvp-section {
        padding: 30px 20px;
    }
    
    .guest-person {
        padding: 20px 15px;
    }
    
    .invitation-footer {
        padding: 40px 15px 30px;
    }
}

/* ===== DYNAMIC PERSONS FORM ===== */
.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.person-header h4 {
    margin: 0;
    color: #5D8E8B;
    font-size: 1.3rem;
    font-weight: 400;
}

.add-person-btn {
    background: #5D8E8B;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Comic Neue', cursive;
    font-weight: 400;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.add-person-btn:hover {
    background: #4a6f6c;
}

.remove-person-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Comic Neue', cursive;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.remove-person-btn:hover {
    background: #c82333;
}

#dynamic-persons-container .guest-person {
    position: relative;
    margin-bottom: 30px;
    padding: 25px;
    background: #f5f0e8;
    border: 2px solid #5D8E8B;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .person-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .remove-person-btn {
        align-self: flex-end;
    }
    
    .add-person-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 360px) {
    .container {
        margin: 10px 15px;
        padding: 15px 10px;
        width: calc(100% - 30px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.03);
    }
    
    .card {
        padding: 20px 10px;
    }
    
    .logo {
        width: 140px;
        height: 140px;
    }
    
    .names {
        font-size: clamp(30px, 12vw, 45px);
    }
} 