* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: #000000;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Hero Section with Couple Photo */
.hero-section {
    background: url('./image/beach.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    color: white;
    position: relative;
    padding: 40px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-names {
    font-size: 100px;
    font-weight: normal;
    margin-top: 150px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    line-height: 0.85;
}

.hero-date {
    font-size: 32px;
    margin-top: 100px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.ceremony-card {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 40px 50px;
    border-radius: 15px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ceremony-card h3 {
    color: #9a9a9a;
    font-size: 22px;
    margin-bottom: 20px;
}

.ceremony-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ceremony-card strong {
    color: #9a9a9a;
}

/* Black Section with Hands Photo */
.black-section {
    background: #000000;
    color: white;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    gap: 40px;
}

.black-content {
    flex: 1;
    padding-right: 20px;
}

.black-date {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.black-ceremony {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.black-ceremony h4 {
    text-decoration: underline;
    color: #9a9a9a;
    font-size: 25px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.hands-photo {
    flex: 1;
    max-width: 500px;
    height: 400px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hands-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 7px;
    position: relative;
    z-index: 2;
    background: none;
    
}

.hands-photo:not(:has(img))::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%23333" width="400" height="400"/><circle cx="200" cy="150" r="60" fill="%23666" opacity="0.3"/><path d="M120,250 Q200,200 280,250 Q200,300 120,250" fill="%23444" opacity="0.5"/><text x="200" y="350" text-anchor="middle" fill="%23888" font-size="14">Praying Hands</text></svg>') center/cover;
}

/* Story Section */
.story-section {
    background: white;
    padding: 80px 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.story-content {
    flex: 2;
}

.story-title {
    font-size: 42px;
    color: #000000;
    margin-bottom: 40px;
    font-weight: 600;
}

.story-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.story-text p {
    margin-bottom: 25px;
}

.story-photo {
    flex: 1;
    height: 500px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-style: italic;
    position: relative;
    overflow: hidden;
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    position: relative;
    z-index: 2;

}

.story-photo:not(:has(img))::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 500"><rect fill="%23f0f0f0" width="300" height="500"/><circle cx="150" cy="150" r="80" fill="%23ddd"/><rect x="100" y="250" width="100" height="150" fill="%23ddd" rx="20"/><text x="150" y="450" text-anchor="middle" fill="%23999" font-size="12">Couple Photo</text></svg>') center/cover;
}

/* RSVP Section */
.rsvp-section {
    background: #000000;
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.rsvp-container {
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-title {
    font-size: 48px;
    margin-bottom: 30px;
    color: #9a9a9a;
    text-decoration: underline;
}

.rsvp-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
}

.rsvp-deadline {
    font-size: 18px;
    color: #9a9a9a;
    margin-bottom: 40px;
}

/* Legacy RSVP content for contact info */
.rsvp-legacy {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.rsvp-content {
    flex: 2;
    text-align: left;
}

.rsvp-contact {
    font-size: 16px;
    line-height: 1.8;
}

.rsvp-contact div {
    margin-bottom: 12px;
}

.rsvp-requirements {
    margin-top: 30px;
}

.rsvp-requirements h4 {
    color: #9a9a9a;
    margin-bottom: 15px;
}

.rsvp-requirements ul {
    list-style: none;
    padding-left: 0;
}

.rsvp-requirements li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.rsvp-requirements li::before {
    content: "•";
    color: #ffffff;
    position: absolute;
    left: 0;
}

.rsvp-photo {
    flex: 1;
    height: 300px;
    background: #444;
    border-radius: 10px;
    border: 2px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

/* RSVP Form Styles */
.rsvp-form {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.attendance-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.attendance-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendance-option:hover {
    border-color: #000000;
    background: #f0f8ff;
}

.attendance-option.selected {
    border-color: #000000;
    background: #000000;
    color: white;
}

.attendance-option input[type="radio"] {
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    background: #000000;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #000000;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    display: none;
    background: #4caf50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.success-message.show {
    display: block;
}

/* Error Message */
.error-message {
    display: none;
    background: #f44336;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.error-message.show {
    display: block;
}

/* Additional Guests Section */
.additional-guests {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.additional-guests.show {
    display: block;
}

.guest-entry {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: end;
}

.guest-entry .form-group {
    margin-bottom: 0;
}

.remove-guest {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
}

.add-guest {
    background: #000000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* Toggle button for form/contact */
.rsvp-toggle {
    margin-bottom: 30px;
}

.toggle-btn {
    background: #1d1835;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.toggle-btn:hover {
    background: #000000;
}

.toggle-btn.active {
    background: #9a9a9a;
}

/* Q&A Section */
.qa-section {
    background: white;
    padding: 80px 40px;
}

.qa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-title {
    font-size: 30px;
    color: #9a9a9a;
    text-align: center;
    margin-bottom: 60px;
    text-decoration: underline;
}

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.qa-item {
    padding: 25px;
    border-left: 4px solid #c4bbb5;
    background: #fafafa;
    border-radius: 8px;
}

.qa-question {
    font-weight: bold;
    color: #000000;
    font-size: 18px;
    margin-bottom: 15px;
}

.qa-answer {
    color: #555;
    line-height: 1.7;
}

/* Schedule Section */
.schedule-section {
    background: #000000;
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.schedule-title {
    font-size: 42px;
    color: #9a9a9a;
    margin-bottom: 60px;
    text-decoration: underline;
}

.schedule-items {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-item {
    background: #2c2c2c;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #ffffff;
    flex: 1;
    max-width: 400px;
}

.schedule-item h3 {
    color: #9a9a9a;
    font-size: 24px;
    margin-bottom: 20px;
}

.schedule-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Directions Section */
.directions-section {
    background: #f8f8f8;
    padding: 80px 40px;
}

.directions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.directions-title {
    font-size: 42px;
    color: #9a9a9a;
    text-align: center;
    margin-bottom: 60px;
}

.directions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.location-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.location-card h3 {
    color: #9a9a9a;
    font-size: 20px;
    margin-bottom: 20px;
}

.map-link {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #4285f4;
    color: white;
}

.transport-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 6px solid #000000;
    margin-top: 40px;
}

.transport-info h3 {
    color: #000000;
    margin-bottom: 20px;
}

/* Closing Section */
.closing-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./image/fireworks.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 40px;
}

.closing-title {
    font-size: 56px;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: normal;
}

.closing-text {
    font-size: 20px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
}

.signature {
    font-size: 28px;
    font-style: italic;
    margin-top: 50px;
    color: #FFE5B4;
}

/* RESPONSIVE DESIGN - Mobile First Approach */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .hero-section {
        padding: 30px;
    }
    
    .hero-names {
        font-size: 80px;
    }
    
    .hero-date {
        font-size: 28px;
        margin-top: 80px;
    }
    
    .black-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }

    .black-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .black-date {
        font-size: 42px;
    }

    .story-section {
        flex-direction: column;
        padding: 60px 30px;
    }

    .story-photo {
        height: 400px;
        margin-top: 40px;
    }

    .rsvp-section {
        padding: 60px 30px;
    }

    .rsvp-legacy {
        flex-direction: column;
        text-align: center;
    }

    .rsvp-content {
        text-align: center;
    }

    .qa-section {
        padding: 60px 30px;
    }

    .qa-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .schedule-section {
        padding: 60px 30px;
    }

    .schedule-items {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .directions-section {
        padding: 60px 30px;
    }

    .directions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .closing-section {
        padding: 80px 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px;
        min-height: 80vh;
    }
    
    .hero-names {
        font-size: 60px;
    }

    .hero-date {
        font-size: 24px;
        margin-top: 60px;
    }

    .ceremony-card {
        padding: 30px;
        margin: 0 20px;
    }

    .black-section {
        padding: 50px 20px;
    }

    .black-date {
        font-size: 36px;
    }

    .black-ceremony {
        font-size: 16px;
    }

    .black-ceremony h4 {
        font-size: 22px;
    }

    .hands-photo {
        height: 300px;
    }

    .story-section {
        padding: 50px 20px;
    }

    .story-title {
        font-size: 32px;
    }

    .story-text {
        font-size: 15px;
    }

    .story-photo {
        height: 300px;
    }

    .rsvp-section {
        padding: 50px 20px;
    }

    .rsvp-title {
        font-size: 36px;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .attendance-options {
        flex-direction: column;
        gap: 15px;
    }

    .guest-entry {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: #f0f0f0;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .remove-guest {
        width: 100%;
        margin-top: 10px;
    }

    .toggle-btn {
        font-size: 14px;
        padding: 10px 20px;
        margin: 5px;
    }

    .qa-section {
        padding: 50px 20px;
    }

    .qa-title {
        font-size: 28px;
    }

    .qa-question {
        font-size: 16px;
    }

    .qa-answer {
        font-size: 14px;
    }

    .schedule-section {
        padding: 50px 20px;
    }

    .schedule-title {
        font-size: 32px;
    }

    .schedule-item {
        padding: 30px 20px;
    }

    .schedule-item h3 {
        font-size: 20px;
    }

    .schedule-item p {
        font-size: 14px;
    }

    .directions-section {
        padding: 50px 20px;
    }

    .directions-title {
        font-size: 32px;
    }

    .location-card {
        padding: 25px 20px;
    }

    .transport-info {
        padding: 30px 20px;
    }

    .closing-section {
        padding: 60px 20px;
    }

    .closing-title {
        font-size: 36px;
    }

    .closing-text {
        font-size: 18px;
    }

    .signature {
        font-size: 22px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-section {
        padding: 15px;
        min-height: 70vh;
    }
    
    .hero-names {
        font-size: 42px;
        line-height: 1;
    }

    .hero-date {
        font-size: 20px;
        margin-top: 40px;
    }

    .ceremony-card {
        padding: 20px;
        margin: 0 15px;
    }

    .ceremony-card h3 {
        font-size: 18px;
    }

    .ceremony-card p {
        font-size: 14px;
    }

    .black-section {
        padding: 40px 15px;
    }

    .black-date {
        font-size: 28px;
    }

    .black-ceremony {
        font-size: 14px;
    }

    .black-ceremony h4 {
        font-size: 18px;
    }

    .hands-photo {
        height: 250px;
    }

    .story-section {
        padding: 40px 15px;
    }

    .story-title {
        font-size: 28px;
    }

    .story-text {
        font-size: 14px;
    }

    .story-photo {
        height: 250px;
    }

    .rsvp-section {
        padding: 40px 15px;
    }

    .rsvp-title {
        font-size: 28px;
    }

    .rsvp-subtitle {
        font-size: 18px;
    }

    .rsvp-deadline {
        font-size: 16px;
    }

    .rsvp-form {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .attendance-option {
        padding: 12px;
        font-size: 14px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .checkbox-group label {
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .toggle-btn {
        font-size: 12px;
        padding: 8px 15px;
        margin: 2px;
        display: block;
        width: calc(50% - 10px);
        display: inline-block;
    }

    .rsvp-toggle {
        display: flex;
        gap: 10px;
    }

    .rsvp-contact {
        font-size: 14px;
    }

    .rsvp-contact div {
        word-break: break-word;
    }

    .qa-section {
        padding: 40px 15px;
    }

    .qa-title {
        font-size: 24px;
    }

    .qa-item {
        padding: 20px;
    }

    .qa-question {
        font-size: 15px;
    }

    .qa-answer {
        font-size: 13px;
    }

    .schedule-section {
        padding: 40px 15px;
    }

    .schedule-title {
        font-size: 28px;
    }

    .schedule-item {
        padding: 25px 15px;
    }

    .schedule-item h3 {
        font-size: 18px;
    }

    .schedule-item p {
        font-size: 13px;
    }

    .directions-section {
        padding: 40px 15px;
    }

    .directions-title {
        font-size: 28px;
    }

    .location-card {
        padding: 20px 15px;
    }

    .location-card h3 {
        font-size: 18px;
    }

    .location-card p {
        font-size: 14px;
    }

    .map-link {
        font-size: 14px;
        padding: 8px 15px;
    }

    .transport-info {
        padding: 25px 15px;
    }

    .transport-info h3 {
        font-size: 18px;
    }

    .transport-info p {
        font-size: 14px;
    }

    .closing-section {
        padding: 50px 15px;
    }

    .closing-title {
        font-size: 32px;
    }

    .closing-text {
        font-size: 16px;
    }

    .signature {
        font-size: 20px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-names {
        font-size: 38px;
    }

    .hero-date {
        font-size: 18px;
    }

    .black-date {
        font-size: 24px;
    }

    .story-title {
        font-size: 24px;
    }

    .rsvp-title {
        font-size: 24px;
    }

    .toggle-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .schedule-title,
    .directions-title {
        font-size: 24px;
    }

    .closing-title {
        font-size: 28px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .attendance-option {
        padding: 18px;
        font-size: 16px;
    }
    
    .toggle-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 18px 30px;
        font-size: 18px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 16px;
    }
    
    .map-link {
        padding: 15px 25px;
        font-size: 16px;
    }
}