:root {
    --color-primary: #E8C8C0;
    --color-secondary: #D4AF37;
    --color-accent: #C28E0D;
    --color-background: #F8F5F0;
    --color-text: #333333;
    --color-white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="%23E8C8C0" stroke-width="2" x="10" y="10" width="80" height="80" rx="10" ry="10"/></svg>');
    background-size: 300px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    text-align: center;
    padding: 40px 20px 30px;
}

.names {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--color-text);
    letter-spacing: 2px;
}

.wedding-date {
    font-size: 2.2rem;
    margin: 30px 0;
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.wedding-date::before,
.wedding-date::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--color-secondary);
    opacity: 0.7;
}

.wedding-date::before {
    left: -50px;
}

.wedding-date::after {
    right: -50px;
}

.tagline {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--color-white);
    padding: 18px 12px;
    border-radius: 10px;
    min-width: 75px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

.rsvp-section {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.rsvp-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.rsvp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
    font-weight: 600;
}

.rsvp-text {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.btn-container {
    margin: 20px 0 30px;
    position: relative;
}

.btn-rsvp,
.btn-location {
    background: linear-gradient(145deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 10px;
}

.btn-location {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-rsvp:hover,
.btn-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-rsvp:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(145deg, var(--color-accent), var(--color-primary));
    z-index: -1;
    border-radius: 50px;
    opacity: 0;
    transition: var(--transition);
}

.btn-rsvp:hover:after {
    opacity: 1;
}

/* Pulsing animation to draw attention */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-rsvp {
    animation: pulse 2s infinite;
}

.rsvp-form {
    display: none;
    max-width: 550px;
    margin: 30px auto 0;
    text-align: left;
    background: var(--color-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 1.05rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input.error,
textarea.error {
    border-color: #e74c3c;
}

/* Toggle Switch Styles */
.toggle-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    transition: var(--transition);
}

.toggle-group:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toggle-label {
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--color-secondary);
}

input:checked+.toggle-slider:before {
    transform: translateX(30px);
}

.conditional-field {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary);
    animation: fadeIn 0.4s ease-out;
}

.submit-btn {
    background: linear-gradient(145deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    margin: 30px auto 0;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.couple-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 60px;
}

.couple-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 35px;
    transition: transform 0.3s ease;
}

.couple-image:hover {
    transform: scale(1.02);
}

.couple-description {
    max-width: 700px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
}

.couple-description p {
    margin-bottom: 20px;
}

/* Location Section Styles */
.location-section {
    padding: 60px 20px;
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: #555;
}

.location-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 12px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--color-secondary);
}

.tab-btn.active {
    color: var(--color-secondary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.location-info {
    display: flex;
    flex-direction: column;
}

.location-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-text);
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
}

.location-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 15px;
    align-items: stretch;
}

.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.map-title {
    font-size: 1.2rem;
    padding: 15px;
    background: var(--color-secondary);
    color: white;
    text-align: center;
    margin: 0;
}

.map-container iframe {
    width: 100%;
    border: none;
    min-height: 300px;
    flex-grow: 1;
}

.location-address {
    text-align: center;
    margin: 15px 0;
    font-size: 1.1rem;
}

.location-address i {
    color: var(--color-secondary);
    margin-right: 10px;
}

.directions {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.directions h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}

.directions ul {
    list-style: none;
    margin-bottom: 20px;
}

.directions li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.directions li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--color-secondary);
}

.parking-info {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--color-secondary);
}

.parking-info h4 {
    margin-bottom: 10px;
    color: var(--color-text);
}

/* Photo Directions Section */
.photo-directions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.photo-directions h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
}

/* Modal for enlarged photos */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    max-width: 80%;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-secondary);
}

footer {
    text-align: center;
    padding: 35px 20px;
    font-size: 0.95rem;
    color: #777;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.heart {
    color: #e25555;
}

.address-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px dotted var(--color-secondary);
    padding-bottom: 2px;
}

.address-link:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    text-decoration: none;
}

/* Style dla modala sukcesu */
#successModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

#successModal .modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input.error,
textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Responsive styles */
@media (max-width: 768px) {
    .names {
        font-size: 2.8rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 65px;
        padding: 15px 8px;
    }

    .countdown-number {
        font-size: 1.7rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .btn-rsvp,
    .btn-location {
        padding: 16px 40px;
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .wedding-date {
        font-size: 1.8rem;
        margin: 25px 0;
    }

    .wedding-date::before,
    .wedding-date::after {
        width: 30px;
    }

    .wedding-date::before {
        left: -40px;
    }

    .wedding-date::after {
        right: -40px;
    }

    .location-details {
        flex-direction: column;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .location-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .names {
        font-size: 2.3rem;
    }

    .wedding-date {
        font-size: 1.6rem;
        margin: 20px 0;
        letter-spacing: 1px;
    }

    .wedding-date::before,
    .wedding-date::after {
        width: 20px;
    }

    .wedding-date::before {
        left: -30px;
    }

    .wedding-date::after {
        right: -30px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .countdown-item {
        min-width: 55px;
        padding: 12px 6px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .btn-rsvp,
    .btn-location {
        padding: 14px 35px;
        font-size: 1.1rem;
    }

    .location-name {
        font-size: 1.4rem;
    }

    .map-container iframe {
        min-height: 250px;
    }
}