.closing-img {
    width: auto;
    height: 600px;
    margin: 0 auto;
    object-fit: cover;
    padding: 10px;
}

.fade-edges {
  width: auto;
  height: 600px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.registry-btn {
    background-color: #c3d69b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.registry-btn:hover {
    background-color: #88a54a;
}

/* Hero Image Styles */
.wedding-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
}

.hero-img {
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .hero-img {
        max-width: 500px;
        max-height: 55vh;
    }
}

@media (min-width: 1024px) {
    .hero-img {
        max-width: 800px;
        max-height: 75vh;
    }
}

.form-row {
    display: flex;
    flex-direction: column; 
}

/* For larger screens, switch to row */
@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
        gap: 1rem; /* Horizontal spacing between fields */
    }

    .form-row .form-group {
        flex: 1; /* Make each field take equal width */
    }
}

.guest-row {
    display: flex;
    flex-direction: column;
}

/* For larger screens, switch to row */
@media (min-width: 768px) {
    .guest-row {
        flex-direction: row;
        gap: 1rem; 
    }

    .guest-row .guest-group {
        flex: 1;
    }
}

.radio-input {
    appearance: none;      /* Remove browser default */
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
}

.radio-input:checked {
    background-color: white; /* keep or remove as you wish */
    background-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.173 12.414l-3.88-3.88 1.415-1.415 2.465 2.465 5.656-5.657 1.415 1.415z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

body {
    font-family: "Libertinus Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f3efe4;
}

h1, h2 {
    color: #c3d69b;
    font-family: "Give You Glory", cursive;
    font-weight: 400;
    font-style: normal;
}

.parallax {
    background-color: #f3efe4;
}

.nav-logo {
    font-size: 2rem;
}
        
.navbar {
    background-color: #f3efe4;
}

.nav-items {
    display: flex;
    flex-direction: column;
}

.nav-item:hover {
    color: #c3d69b; 
}

.nav-item.active {
    font-style: italic;
    color: #c3d69b
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6vw; /* space scales with screen width */
  flex-wrap: nowrap; /* never stack */
}

.time-box {
  text-align: center;
  flex: 0 0 auto; /* prevent squashing */
}

.time-box span {
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 300;
  display: block;
}

.label {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  letter-spacing: 0.2em;
  margin-top: 0.5em;
}

/* Mobile-First Responsive Sections */
.container {
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography Responsive */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.nav-logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* RSVP Form Styles */
.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

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

.form-row {
    display: flex;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 767px) {
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #c3d69b;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.guest-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    
}

.guest-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.hidden {
    display: none;
}

.submit-btn {
    background-color: #c3d69b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #88a54a;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.registry-link {
    background-color: #2196F3;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px;
}

.registry-link:hover {
    background-color: #1976D2;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.error-message {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.back-btn {
    background-color: #6b7280;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: #4b5563;
}

/* Registry Page Image Styling */
.registry-couple-img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .registry-couple-img {
        height: 450px;
        max-width: 600px;
        object-position: center center;
    }
}

@media (min-width: 1024px) {
    .registry-couple-img {
        height: 400px;
        max-width: 550px;
    }
}