/* Wedding RSVP Public-facing CSS */

.wedding-rsvp-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.wedding-rsvp-heading {
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wedding-rsvp-subheading {
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.wedding-rsvp-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #D3B88C;
    min-height: 300px;
    height: auto;
}

/* Invitation Styles */
.wedding-rsvp-form.invitation-style-classic {
    border-width: 1px;
    border-style: solid;
    padding: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect width="100" height="100" fill="none" stroke="black" stroke-width="2" /></svg>');
    background-size: 25px 25px;
    background-position: center;
}

.wedding-rsvp-form.invitation-style-modern {
    border: none;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.wedding-rsvp-form.invitation-style-floral {
    border-width: 1px;
    border-style: solid;
    padding: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><path d="M30,10 Q50,0 70,10 T100,30 Q110,50 100,70 T70,100 Q50,110 30,100 T0,70 Q-10,50 0,30 T30,10 Z" fill="none" stroke="black" stroke-width="1" /></svg>');
    background-size: 120px 120px;
    background-position: center;
}

.wedding-rsvp-form.invitation-style-minimal {
    border: none;
    padding: 40px;
    box-shadow: none;
    background-color: #fafafa;
    border-radius: 0;
}

/* Reset form container for thank you screen */
.rsvp-step-4.active ~ .wedding-rsvp-form {
    height: auto !important;
    min-height: 300px;
}

/* Explicit transitions for steps */
.rsvp-step {
    display: none;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
    position: relative;
}

.rsvp-step.active {
    display: block;
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    z-index: 10;
}

.rsvp-instructions {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
    color: #444;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #D3B88C;
    box-shadow: 0 0 0 3px rgba(211, 184, 140, 0.2);
    outline: none;
}

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

button {
    background-color: #D3B88C;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #c0a67a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add ripple effect */
button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.search-button, .submit-button {
    width: 100%;
}

.back-button, .back-to-search-button, .start-over-button {
    background-color: #888;
    margin-right: 10px;
}

.back-button:hover, .back-to-search-button:hover, .start-over-button:hover {
    background-color: #777;
}

.search-error {
    margin-top: 15px;
    color: #d9534f;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
}

/* Search container and dropdown */
.search-container {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9f7f2;
}

.guest-name {
    font-weight: bold;
}

.guest-count {
    color: #666;
    font-size: 0.9em;
}

.dropdown-loading,
.no-results {
    padding: 10px 15px;
    color: #666;
    text-align: center;
}

/* Guest selection styles */
.guest-selection {
    margin-bottom: 20px;
}

.guest-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-item:hover {
    background-color: #f9f9f9;
}

.guest-item-selected {
    border-color: #D3B88C;
    background-color: #f9f7f2;
}

.guest-item h3 {
    margin: 0 0 5px 0;
}

.guest-item p {
    margin: 0;
    color: #666;
}

/* Make max guests more prominent */
.max-guests-count {
    color: #333;
    font-size: 1.1em;
}

/* Guest details on the form */
.guest-details {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f7f2;
    border-radius: 4px;
    border-left: 3px solid #D3B88C;
    animation: fadeIn 0.5s ease;
}

.guest-details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.guest-details p {
    margin-bottom: 5px;
    color: #555;
}

.max-guests-display {
    font-size: 1.1em;
    background-color: #f9f7f2;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #D3B88C;
}

.max-guests-value {
    font-size: 1.2em;
    color: #D3B88C;
}

/* Custom questions styles */
.custom-questions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.custom-questions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.radio-option, .checkbox-option {
    margin-bottom: 10px;
}

/* Thank you message */
.thank-you-message {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.thank-you-message h3 {
    color: #5cb85c;
    margin-bottom: 15px;
}

.thank-you-message p {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

/* Calendar links */
.calendar-links {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f7f2;
    border-radius: 4px;
    text-align: center;
}

.calendar-link {
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.calendar-link:hover {
    background-color: #f1f1f1;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.calendar-icon {
    margin-right: 5px;
}

/* Hide attending options initially */
.attending-options {
    display: none;
}

/* Animated elements */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .wedding-rsvp-form {
        padding: 20px;
    }
    
    .wedding-rsvp-heading {
        font-size: 28px;
    }
    
    .wedding-rsvp-subheading {
        font-size: 16px;
    }
}

/* Attendance Options */
.attendance-options {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.attendance-option {
    flex: 1;
    padding: 20px;
    background-color: #f9f7f2;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendance-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.attendance-option.selected {
    background-color: #f0e9d9;
    border-color: #D3B88C;
    box-shadow: 0 5px 15px rgba(211, 184, 140, 0.2);
}

.attendance-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.attendance-option[data-value="1"] .attendance-icon {
    color: #5cb85c;
}

.attendance-option[data-value="0"] .attendance-icon {
    color: #d9534f;
}

.attendance-text {
    font-weight: 600;
    color: #555;
}

/* Guest Count Options */
.guest-count-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.guest-count-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f7f2;
    border: 2px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-count-option:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.guest-count-option.selected {
    background-color: #f0e9d9;
    border-color: #D3B88C;
    color: #D3B88C;
    box-shadow: 0 5px 10px rgba(211, 184, 140, 0.2);
}

/* Custom styles for different invitation themes */
.invitation-style-classic .attendance-option,
.invitation-style-classic .guest-count-option {
    background-color: #fff;
    border-style: double;
    border-width: 3px;
}

.invitation-style-modern .attendance-option,
.invitation-style-modern .guest-count-option {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-width: 1px;
}

.invitation-style-floral .attendance-option,
.invitation-style-floral .guest-count-option {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.invitation-style-minimal .attendance-option,
.invitation-style-minimal .guest-count-option {
    background-color: #fafafa;
    border-radius: 0;
    border-width: 1px;
    box-shadow: none;
}

/* Event Details */
.wedding-event-details {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f7f2;
    border: 1px solid #D3B88C;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.event-date-time {
    margin-bottom: 10px;
}

.event-date {
    font-weight: 600;
    margin-right: 10px;
}

.event-time {
    color: #666;
}

.event-location {
    color: #555;
}

.location-icon {
    margin-right: 5px;
    color: #D3B88C;
}

/* RSVP Deadline Message */
.rsvp-deadline-message {
    padding: 30px;
    text-align: center;
    background-color: #f9f7f2;
    border: 1px solid #D3B88C;
    border-radius: 8px;
}

.rsvp-deadline-message h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.rsvp-deadline-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 0;
}

/* Confirmation screen styles */
.rsvp-step-4 {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
}

.thank-you-message {
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.thank-you-message h3 {
    font-size: 32px;
    color: #e2687d;
    margin-bottom: 20px;
}

.thank-you-message p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Calendar links */
.calendar-links {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-links p {
    margin-bottom: 15px;
    font-weight: bold;
}

.calendar-link {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background-color: #e2687d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.calendar-link:hover {
    background-color: #d15c71;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calendar-icon {
    margin-right: 8px;
}

.google-calendar {
    background-color: #4285F4;
}

.google-calendar:hover {
    background-color: #3367D6;
}

.apple-calendar {
    background-color: #5bc236;
}

.apple-calendar:hover {
    background-color: #4ca92e;
}

/* Animation keyframes for the success animation */
@keyframes scale-in {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes checkmark-draw {
    0% { height: 0; width: 0; opacity: 1; }
    100% { height: 40px; width: 20px; opacity: 1; }
}

/* Make sure step 4 is always displayed when active */
.rsvp-step-4.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
} 