@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ===== PREVENT ZOOM ON INPUT FOCUS ===== */
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-user-zoom: fixed;
    user-zoom: fixed;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove default iOS styling */
input, textarea, select {
    border-radius: 0;
}

/* ===== GOOGLE FONTS ===== */
.hero-title {
    font-family: 'Great Vibes', cursive;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

.language-switcher button {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    min-height: 44px;
    min-width: 44px;
}

.language-switcher button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-switcher button:active {
    transform: translateY(0);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== MOBILE FIRST RESPONSIVE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: #fff;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 100%;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.register-btn {
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse-button 2s infinite;
    font-family: inherit;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 48px;
    min-width: 48px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

.register-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== TABLET (768px) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .register-btn {
        padding: 14px 40px;
        font-size: 1rem;
    }
}

/* ===== DESKTOP (1024px) ===== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .register-btn {
        padding: 18px 60px;
        font-size: 1.2rem;
    }
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: auto;
    width: 100%;
}

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

@media (min-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (min-width: 768px) {
    .registration-section {
        padding: 50px 20px;
    }

    .container {
        max-width: 600px;
        padding: 0;
    }
}

.registration-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
    font-family: 'Playfair Display', serif;
}

.registration-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.1s both;
    font-family: 'Montserrat', sans-serif;
}

/* ===== CUSTOM FORM STYLES ===== */
.custom-form {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }
.form-group:nth-child(5) { animation-delay: 0.6s; }

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 0.8rem;
    font-family: inherit;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    color: #202124;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.form-group input::placeholder {
    color: #9aa0a6;
}

/* Number input without spinner */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
    padding-right: 40px;
}

.form-group select option {
    background-color: #fff;
    color: #202124;
    padding: 10px;
}

.form-group.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.form-group.hidden {
    display: none;
}

@media (max-width: 480px) {
    .form-group.form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .form-group input,
    .form-group select {
        padding: 14px 14px;
        font-size: 16px;
        min-height: 48px;
    }
}

.form-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #d32f2f !important;
    background: #ffebee;
}

.form-group.error .form-error {
    display: block;
}

/* ===== MULTI-STEP FORM ===== */

.multi-step-form {
    animation: fadeInUp 0.8s ease 0.2s both;
    position: relative;
}

/* CRITICAL: Hide all steps by default */
.form-step {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 0;
    overflow: hidden;
}

/* Show only active step */
.form-step.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    position: relative;
    height: auto;
    animation: fadeInUp 0.6s ease forwards;
}

/* Form sections */
.form-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    animation: fadeInUp 0.3s ease;
    transition: all 0.3s ease;
}

.form-section.hidden {
    display: none !important;
}

/* Checkbox/Radio Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    transition: all 0.2s ease;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    user-select: none;
    -webkit-user-select: none;
}

.checkbox-label:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

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

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #dadce0;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

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

.checkbox-label input[type="radio"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    max-width: 200px;
    min-width: 120px;
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
        gap: 0.8rem;
    }

    .button-group button {
        max-width: 100%;
        width: 100%;
    }
}

/* Next/Prev Buttons */
.btn-next,
.btn-prev {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-next:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

.btn-next:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-prev {
    background: #f0f0f0;
    color: #666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-prev:hover {
    background: #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-prev:active {
    transform: translateY(0);
}

/* Form Submit Button */
.form-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse-button 2s infinite;
    font-family: inherit;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
    font-size: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

.form-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* Confirmation Text */
.confirmation-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Dynamic guests section */
.guests-section {
    margin-top: 1.2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    animation: fadeInUp 0.3s ease;
}

.guests-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-item {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

.guest-item:last-child {
    margin-bottom: 0;
}

.guest-item .form-group {
    margin-bottom: 0;
}

.guest-item .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.guest-item .form-group input {
    padding: 12px 14px;
    font-size: 16px;
    min-height: 44px;
}

/* ===== SUCCESS MODAL ===== */

.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
    padding: 20px;
}

.success-modal.active {
    display: flex !important;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.3s ease;
}

.success-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalContentSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    animation: iconScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 3;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #202124;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.modal-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.modal-action-btn {
    padding: 12px 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    font-family: inherit;
    animation: fadeInUp 0.6s ease 0.5s both;
    min-height: 44px;
}

.modal-action-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */

@keyframes pulse-button {
    0% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 50px rgba(102, 126, 234, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes overlayFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }
}

@keyframes modalContentSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
}

/* ===== CAROUSEL STYLES ===== */

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    min-width: 12px;
    min-height: 12px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

/* Hero content stays on top */
.hero-content {
    position: relative;
    z-index: 50;
}

/* Mobile adjustments for Carousel Indicators */
@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}