/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Caslons Egyptian Font Family */

body {
    font-family: 'Caslons Egyptian', 'Segoe UI', Tahoma, Geneva, Verdana, serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

#app {
    width: 100%;
    min-height: 100vh;
}

.page {
    width: 100%;
    min-height: 100vh;
}

/* background: url(
        "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")
            repeat,
        linear-gradient(
            180deg,
            rgba(22, 30, 36, 1) 0%,
            rgba(74, 114, 129, 1) 40%,
            rgba(74, 114, 129, 1) 85%,
            rgba(25, 39, 47, 1) 100%
        ); */

/* FORM PAGE STYLES */
.form-page {
    min-height: 100vh;
    background-color: #374f58;
    background-image: url('/assets/back_img-min.png');
    background-size: cover;
    justify-items: center;
}

.form-page-audible {
    margin-top: clamp(50px, 8vw, 100px);
    width: min(350px, 90%);
}

.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.venue-info {
    color: #666;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: clamp(30px, 5vw, 50px) auto;
    text-align: center;
    text-transform: uppercase;
}

/* Content section */
.content-section {
    color: white;
    text-align: center;
}

/* Decorative elements for form-page-image */
.form-page-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.decorative-left-form,
.decorative-right-form {
    position: fixed;
    transform: translateY(-50%);
    width: auto;
    z-index: 11;
    transition: top 0.1s ease-out;
}

.decorative-left-form {
    left: 0;
    height: 600px;
    pointer-events: none;
}

.decorative-right-form {
    right: 0;
    height: 600px;
    pointer-events: none;
}

@media screen and (max-width: 1500px) {
    .decorative-left-form {
        left: 0;
        height: 400px;
        pointer-events: none;
    }

    .decorative-right-form {
        right: 0;
        height: 400px;
        pointer-events: none;
    }
}

.form-page-image {
    z-index: 2;
    position: relative;
}

.form-page-image img {
    width: 85%;
}
/* Mid decorative elements */
.mid-rose-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.decorative-left-mid,
.decorative-right-mid {
    position: fixed;
    transform: translateY(-50%);
    width: auto;
    z-index: 11;
    transition: top 0.1s ease-out;
    pointer-events: none;
}

.decorative-left-mid {
    left: 0;
    height: 500px;
}

.decorative-right-mid {
    right: 0;
    height: 750px;
}

/* Bot decorative elements */
.bot-rose-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.decorative-left-bot,
.decorative-right-bot {
    position: absolute;
    transform: translateY(-50%);
    width: auto;
    z-index: 5;
    pointer-events: none;
}

.decorative-right-bot {
    top: 80%;
}

.decorative-left-bot {
    top: 30%;
}

.decorative-left-bot {
    left: 0;
    height: 400px;
}

.decorative-right-bot {
    right: 0;
    height: 400px;
}

.intro-text {
    width: 100%;
    margin: 0 auto 120px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.description-text {
    width: min(635px, 100%);
    margin: auto;
}

.description-text.caslon-regular {
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.375rem);
    color: #9fdcf1;
    line-height: 1.2;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.description-text.caslon-book {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin-bottom: clamp(80px, 10vw, 150px);
}

.event-info {
    margin-top: clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.register-text {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    margin: 0 auto 10px auto;
}

.free-text {
    margin: auto;
    font-size: 1.125rem;
    font-weight: 300;
    color: #fff;
}

.accesibility-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 10px;
}

.accesibility-description {
    font-size: 1rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
}

/* Form section */
.form-section {
    background: white;
    color: black;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: min(800px, 100%);
    margin: auto;
}

.form-title {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    color: #333;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.dynamic-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: start;
}

/* Field containers */
.field-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-container.full-width {
    grid-column: 1 / -1;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Field errors */
.field-error {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #dc3545;
    padding: 0.25rem 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    margin-top: 0.25rem;
    font-weight: 500;
}

.dynamic-form .submit-button {
    grid-column: 1 / -1;
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.submit-button {
    background: #43606a;
    color: white;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border: none;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    cursor: pointer;
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.submit-button:hover:not(:disabled) {
    background: #364d56;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

/* Input field styles */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #43606a;
    color: #43606a;
    font-size: 1rem;
    background-color: #fff;
    font-weight: bold;
}

.input-field::placeholder {
    color: #43606a;
    font-weight: bold;
}

.input-field:focus {
    outline: none;
}

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

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.checkbox-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    cursor: pointer;
    margin: 0;
    color: #43606a;
    font-size: 18px;
    line-height: 1.5;
    flex: 1;
    text-align: left;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #5a67d8;
}

/* THANK YOU PAGE STYLES */
.thank-you-page {
    color: #43606a;
    min-height: 100vh;
    background-color: #374f58;
    background-image: url('/assets/back_img-min.png');
    background-size: cover;
    justify-items: center;
    padding: 2rem;
    padding-top: 0;
    padding-bottom: 100px;
}

.thank-you-page-audible,
.thank-you-page-image {
    width: min(350px, 100%);
}

.thank-you-page-audible {
    margin-top: clamp(50px, 8vw, 100px);
}

.thank-you-page-image {
    margin-top: 170px;
}

.thank-you-page-title {
    width: min(1150px, 100%);
    margin-bottom: 50px;
}

.thank-you-container {
    background: white;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: visible;
    margin: auto;
}

.thank-you-title {
    font-size: 32px;
    width: min(565px, 100%);
    margin: auto;
    margin-bottom: 100px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.venue-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-name {
    font-size: 72px;
    width: min(565px, 100%);
    margin-bottom: 62px;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
}

.decorative-left,
.decorative-right {
    position: fixed;
    transform: translateY(-50%);
    width: auto;
    z-index: 11;
    transition: top 0.1s ease-out;
}

.decorative-left {
    left: 0;
    height: 450px;
}

.decorative-right {
    right: 0;
    height: 520px;
}

.event-details {
    margin-bottom: 2rem;
}

.venue-address,
.event-date {
    font-size: 32px;
    width: min(505px, 100%);
    margin: 0 auto 50px;
    letter-spacing: 0.5px;
}

.confirmation-message {
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.save-date {
    font-size: 32px;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.slogan {
    font-size: 72px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

/* PROTECTED PAGE STYLES */
.protected-page {
    min-height: 100vh;
    background-color: #374f58;
    background-image: url('/assets/back_img-min.png');
    background-size: cover;
    justify-items: center;
    padding: 2rem;
}

.protected-page-audible,
.protected-page-logo {
    width: min(350px, 90%);
}

.protected-page-audible {
    margin-top: clamp(30px, 5vw, 50px);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.protected-page-logo {
    width: min(200px, 80%);
}

/* Login Form Styles */
.login-container,
.admin-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.login-form-container {
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: clamp(1rem, 3vw, 2rem) 0;
}

.login-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #43606a;
    margin-bottom: 1rem;
    text-align: center;
}

.login-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.password-container {
    width: 100%;
    max-width: 400px;
}

.password-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    color: #43606a;
    font-size: 1.125rem;
    background-color: #fff;
    text-align: center;
}

.password-field:focus {
    outline: none;
    border-color: #43606a;
}

.login-button {
    background: #43606a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    min-width: 200px;
}

.login-button:hover {
    background: #364d56;
}

.login-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
}

/* Admin Panel Styles */
.admin-panel {
    background: white;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: clamp(1rem, 3vw, 2rem) 0;
    text-align: left;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

.admin-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    color: #43606a;
    margin: 0;
}

.logout-button {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.logout-button:hover {
    background: #c82333;
}

/* QR Scan Button */
.scan-qr-button {
    background: #198754;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}
.scan-qr-button:hover {
    background: #146c43;
}

.admin-content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: #43606a;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 0.5rem;
}

/* Check-in Summary */
.checkin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.summary-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    display: block;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.summary-value.attended {
    color: #28a745;
}

.summary-value.pending {
    color: #ffc107;
}

/* Search Section */
.search-section {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #43606a;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    color: #43606a;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #43606a;
}

.search-button {
    padding: 0.75rem 1rem;
    background: #43606a;
    color: white;
    border: none;
    cursor: pointer;
}

.search-button:hover {
    background: #364d56;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #43606a;
    border: 2px solid #e1e5e9;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #43606a;
    color: white;
    border-color: #43606a;
}

/* Registration List */
.registration-list {
    margin-bottom: 2rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #43606a;
    border: 2px solid #e1e5e9;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #43606a;
    color: white;
}

/* QR Scanner Modal */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.qr-modal {
    background: #fff;
    width: min(640px, 92%);
    max-width: 92vw;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #43606a;
    color: #fff;
}
.qr-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.qr-modal-body {
    padding: 1rem;
}
#qr-video {
    width: 100%;
    height: auto;
    background: #000;
}
.qr-hint {
    margin-top: 0.5rem;
    text-align: center;
    color: #43606a;
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 11000;
}
.toast {
    min-width: 220px;
    max-width: 90vw;
    padding: 12px 14px;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-info {
    background: #43606a;
}
.toast-success {
    background: #198754;
}
.toast-error {
    background: #dc3545;
}
.toast-warning {
    background: #ffc107;
    color: #212529;
}

/* Guest Cards */
.guests-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.guest-card {
    background: white;
    border: 2px solid #e1e5e9;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #e1e5e9;
}

.guest-card.active {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.guest-card.disable {
    border-left-color: red;
    background: rgba(255, 193, 7, 0.05);
}

.guest-info {
    flex: 1;
}

.guest-main {
    margin-bottom: 0.5rem;
}

.guest-name {
    font-size: 1.1rem;
    color: #43606a;
    margin: 0 0 0.25rem 0;
}

.guest-email,
.guest-phone {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0;
}

.guest-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.registration-time,
.checkin-time {
    font-size: 0.8rem;
    color: #888;
}

.guest-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
}

.status-badge.status-attended {
    background: #28a745;
    color: white;
}

.status-badge.status-pending {
    background: #ffc107;
    color: #212529;
}

.checkin-btn {
    padding: 0.5rem 1rem;
    background: #43606a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
}

.checkin-btn:hover {
    background: #364d56;
}

/* LOADER STYLES */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #161e24;
    background: linear-gradient(
        180deg,
        rgba(22, 30, 36, 1) 0%,
        rgba(74, 114, 129, 1) 65%,
        rgba(74, 114, 129, 1) 80%,
        rgba(25, 39, 47, 1) 100%
    );
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #43606a;
    border-radius: 50%;
}

/* Content animation removed */
.content-wrapper {
    overflow: hidden;
    width: 100%;
    opacity: 1;
    text-align: center;
}
.content-wrapper.admin {
    width: 100%;
}
/* RESPONSIVE STYLES */

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .thank-you-container .decorative-left {
        height: 305px;
    }
    .thank-you-container .decorative-right {
        height: 400px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .main-container {
        gap: 1rem;
    }

    .dynamic-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .field-container {
        gap: 0.375rem;
    }

    .field-error {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .decorative-left-form,
    .decorative-right-form,
    .decorative-left-mid,
    .decorative-right-mid,
    .decorative-left-bot,
    .decorative-right-bot {
        display: none;
    }

    .thank-you-page-audible,
    .thank-you-page-image {
        width: min(150px, 100%);
    }

    .thank-you-page-audible {
        margin-top: 60px;
    }

    .thank-you-page-image {
        margin-top: 40px;
    }

    .thank-you-page-title {
        width: min(350px, 100%);
        margin-bottom: 20px;
    }

    .thank-you-container {
        max-width: 350px;
        padding: 1.2rem 1rem;
        margin: 0.5rem;
    }

    .thank-you-title {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .venue-name {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .venue-address,
    .event-date {
        font-size: 14px;
        margin: 0 auto 20px;
    }

    .confirmation-message,
    .save-date {
        font-size: 14px;
    }

    .slogan {
        font-size: 22px;
    }

    .decorative-left,
    .decorative-right {
        display: none;
    }

    /* Protected page mobile styles */
    .protected-page {
        padding: 1rem;
    }

    .login-form-container,
    .admin-panel {
        padding: 1.5rem 1rem;
    }

    .checkin-summary {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    .filter-buttons {
        justify-content: center;
    }

    .list-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .list-actions {
        justify-content: center;
    }

    .guest-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .guest-actions {
        margin-left: 0;
        flex-direction: row;
        justify-content: center;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Standard mobile devices */
@media (max-width: 768px) {

    .main-container {
        gap: 1.5rem;
    }

    .dynamic-form {
        grid-template-columns: 1fr;
    }

    .field-container {
        gap: 0.5rem;
    }

    .content-section {
        display: flex;
        flex-direction: column;
    }

    .content-section .form-page-image-container {
        order: 2;
        margin-bottom: 0;
    }
    .content-section .intro-text {
        order: 3;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .content-section .mid-rose-container {
        order: 4;
        
            margin-bottom: 0;
        }
    .content-section .mid-rose-container .description-text {
        font-size: 1rem;
        margin-bottom: 0px;
    }
    .content-section .event-info {
        order: 5;
        margin-top: 0px;
        margin-bottom: 10px;
        padding: 0.2rem;
    }
    .content-section .event-info .register-text {
        font-size: 2rem;
        display: none;
    }
    .content-section .event-info .free-text {
        font-size: 1rem;
    }
    .content-section .accesibility {
        order: 6;
        margin-bottom: 15px;
    }

    .content-section .accesibility .accesibility-description {
        margin-bottom: 0;
    }
    .content-section .form-section {
        order: 7;
    }
    .content-section .description-text {
        order: 7;
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .content-section .event-images {
        order: 9;
        margin-bottom: 0px;
    }
    .content-section .event-images .event-image-container {
        width: calc(50% - 34px);
    }
    .content-section .event-images .event-image-text {
        top: 0%;
        width: 100%;
    }

    .thank-you-page-image {
        margin-top: 0 !important;
    }

    /* Reduced decorative elements */
    .decorative-left-form {
        height: 200px;
    }

    .decorative-right-form {
        height: 200px;
    }

    .decorative-left-mid {
        height: 200px;
    }

    .decorative-right-mid {
        height: 300px;
    }

    .decorative-left-bot {
        height: 80px;
    }

    .decorative-right-bot {
        height: 80px;
    }

    .form-page-image img {
        width: 90%;
    }

    .form-page-audible,
    .thank-you-page-image {
        width: 30%;
    }

    .thank-you-page-audible,
    .thank-you-page-image {
        width: min(180px, 100%);
    }

    .thank-you-page-audible {
        margin-top: 80px;
    }

    .thank-you-page-image {
        margin-top: 60px;
    }

    .thank-you-page-title {
        width: min(450px, 100%);
        margin-bottom: 25px;
    }

    .thank-you-container {
        max-width: 450px;
        padding: 1.5rem 1.2rem;
        margin: 1rem;
    }

    .thank-you-title {
        font-size: 16px;
        margin-bottom: 50px;
    }

    .venue-name {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .venue-address,
    .event-date {
        font-size: 16px;
        margin: 0 auto 25px;
    }

    .confirmation-message,
    .save-date {
        font-size: 16px;
    }

    .slogan {
        font-size: 28px;
    }

    .decorative-left {
        height: 200px;
    }

    .decorative-right {
        height: 250px;
    }

    /* Protected page tablet styles */
    .checkin-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .guest-card {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 1460px) {
    .decorative-left-mid {
        height: 300px;
    }

    .decorative-right-mid {
        height: 350px;
    }
}

@media (max-width: 920px) {
    .decorative-left-mid,
    .decorative-right-mid {
        display: none;
    }
}

@media (max-width: 1200px) {
    .decorative-left-mid {
        height: 170px;
    }

    .decorative-right-mid {
        height: 250px;
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .decorative-left-form {
        height: 400px;
    }

    .decorative-right-form {
        height: 350px;
    }

    .decorative-left-mid {
        height: 170px;
    }

    .decorative-right-mid {
        height: 250px;
    }

    .decorative-left-bot {
        height: 150px;
    }

    .decorative-right-bot {
        height: 150px;
    }

    .thank-you-page-audible,
    .thank-you-page-image {
        width: min(200px, 100%);
    }

    .thank-you-page-audible {
        margin-top: 120px;
    }

    .thank-you-page-image {
        margin-top: 90px;
    }

    .thank-you-page-title {
        width: min(550px, 100%);
        margin-bottom: 30px;
    }

    .thank-you-container {
        max-width: 550px;
        padding: 1.8rem 1.5rem;
    }

    .thank-you-title {
        font-size: 18px;
        margin-bottom: 70px;
    }

    .venue-name {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .venue-address,
    .event-date {
        font-size: 18px;
        margin: 0 auto 30px;
    }

    .confirmation-message,
    .save-date {
        font-size: 18px;
    }

    .slogan {
        font-size: 35px;
    }

    .decorative-left {
        height: 300px;
    }

    .decorative-right {
        height: 400px;
    }

    /* Protected page large tablet styles */
    .checkin-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens */
@media (min-width: 1441px) {
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* UNSUBSCRIBE PAGE STYLES */
.unsubscribe-page {
    min-height: 100vh;
    background-color: #374f58;
    background-image: url('/assets/back_img-min.png');
    background-size: cover;
    justify-items: center;
}

.unsubscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-message {
    text-align: center;
    margin-bottom: 2rem;
}

.message-text {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

/* EDIT PAGE STYLES */
.edit-page {
    min-height: 100vh;
    background-color: #374f58;
    background-image: url('/assets/back_img-min.png');
    background-size: cover;
    justify-items: center;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.field-input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.field-input:focus {
    outline: none;
    border-color: #43606a;
}

/* Success and Error Messages */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    border-radius: 4px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    border-radius: 4px;
}

/* Mobile styles for new pages */
@media (max-width: 768px) {
    .unsubscribe-form,
    .edit-form {
        gap: 1rem;
    }

    .message-text {
        font-size: 16px;
    }

    .field-label {
        font-size: 14px;
    }

    .field-input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Pagination Container Styles */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.per-page-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #43606a;
    padding: 0.5rem 1rem;
    padding-left: 0;
    border-radius: 4px;
    font-weight: 500;
}

.per-page-select {
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    color: #43606a;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

.per-page-select:focus {
    outline: none;
    border-color: #43606a;
}

/* Responsive: Stack label and pagination vertically on mobile */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .per-page-label {
        justify-content: flex-start;
        width: 100%;
        font-size: 0.98rem;
        padding: 0.4rem 0.7rem;
    }
    .per-page-select {
        font-size: 0.98rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    user-select: none;
}

.pagination-btn {
    background: #43606a;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination-btn:disabled,
.pagination-btn[disabled] {
    background: #b2bec3;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination-btn:not(:disabled):hover {
    background: #364d56;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
}

.pagination-pages .pagination-pages__item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #43606a;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #e1e5e9;
    transition: background 0.2s, color 0.2s;
    padding: 0 10px;
}

.pagination-pages .pagination-pages__item:hover:not(.disabled) {
    background: #43606a;
    color: #fff;
}

.pagination-pages .pagination-pages__item.disabled {
    background: #43606a;
    color: #fff;
    cursor: default;
    font-weight: bold;
    border: 1px solid #43606a;
    pointer-events: none;
}

/* Responsive pagination */
@media (max-width: 480px) {
    .pagination {
        gap: 0.5rem;
        margin: 0;
    }
    .pagination-btn,
    .pagination-pages .pagination-pages__item {
        font-size: 0.9rem;
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
    }
}

/* Admin Filters Form Styles */
.admin-filters-form {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-input,
.filter-select {
    padding: 0.6rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    color: #43606a;
    background: #fff;
    transition: border-color 0.2s;
    min-width: 140px;
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #43606a;
}

.filter-select {
    min-width: 120px;
}

.filter-apply-btn,
.filter-reset-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.filter-apply-btn {
    background: #43606a;
    color: #fff;
}

.filter-apply-btn:hover {
    background: #364d56;
}

.filter-reset-btn {
    background: #f8f9fa;
    color: #43606a;
    border: 2px solid #e1e5e9;
}

.filter-reset-btn:hover {
    background: #e1e5e9;
    color: #364d56;
}

@media (max-width: 768px) {
    .admin-filters-form {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .filter-input,
    .filter-select,
    .filter-apply-btn,
    .filter-reset-btn {
        min-width: 0;
        width: 100%;
    }
}

/* Admin Reminder Styles */
.admin-reminder-container {
    margin-bottom: 2rem;
    display: flex;
    display: none;
    justify-content: center;
    align-items: flex-start;
}

.admin-reminder {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 16px rgba(67, 96, 106, 0.08);
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.reminder-form {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.reminder-form label {
    font-size: 1rem;
    color: #43606a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-date-input {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    color: #43606a;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-left: 0.5rem;
}

.reminder-date-input:focus {
    outline: none;
    border-color: #43606a;
}

.reminder-submit-btn {
    background: #43606a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.reminder-submit-btn:hover:not(:disabled) {
    background: #364d56;
}

.reminder-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.reminder-message {
    font-size: 1rem;
    color: #28a745;
    margin-top: 0.75rem;
    min-height: 1.2em;
}

@media (max-width: 768px) {
    .admin-reminder {
        padding: 1rem;
    }
    .reminder-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .reminder-form label,
    .reminder-submit-btn {
        margin-left: 0 !important;
    }
}

.select-field {
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
    text-align: center;
    color: #43606a;
    font-weight: bold;
}

.select-field:focus {
    outline: none;
}

.select-field option {
    padding: 0.5rem;
}

/* Make slot field span full width in grid */
.field-container[data-field='slot_id'] {
    grid-column: 1 / -1;
}

.event-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.event-image-container {
    position: relative;
}
.event-image-container img {
    max-width: 100%;
}
.event-images .event-image-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 83px;
    font-weight: 100;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: flex;
    justify-content: end;
    gap: 8px;
}

.language-btn {
    color: black;
    background-color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid black;
}

.language-btn:hover {
    transform: translateY(-1px);
}

.language-btn.active {
    color: white;
    background: #364d56;
    font-weight: 600;
}

@media (max-width: 768px) {
    .language-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
