/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,6 C10,3 7,1 5,3 C3,1 0,3 0,6 C0,8 5,14 5,14 C5,14 10,8 10,6 Z" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.anniversary-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.anniversary-badge i {
    color: #ff6b6b;
    margin-right: 10px;
    font-size: 1.2em;
    animation: heartbeat 2s ease-in-out infinite;
}

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

.anniversary-badge span {
    font-size: 1.5em;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.date-info {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.date-info i {
    margin-right: 10px;
    color: #ffd700;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1em;
}

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

.form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1em;
}

.form-label i {
    margin-right: 10px;
    color: #667eea;
    width: 20px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Number Input Container Styles */
.number-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.number-input-container:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.number-input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    padding: 15px 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.number-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.number-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.number-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.number-btn:active {
    transform: scale(0.95);
}

.minus-btn {
    border-radius: 0;
}

.plus-btn {
    border-radius: 0;
}

.number-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.number-btn:disabled:hover {
    background: #cbd5e0;
    transform: none;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .number-btn {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
    
    .number-input {
        font-size: 1em;
        padding: 12px 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .number-input-container {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Radio Button Styles */
.participation-group {
    margin-bottom: 30px;
}

.radio-group {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.radio-option:hover {
    border-color: #667eea;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

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

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    flex: 1;
    font-weight: 600;
    font-size: 1.1em;
}

.radio-option i {
    font-size: 1.2em;
    margin-left: 10px;
}

.yes-option {
    border-color: #28a745;
}

.yes-option:hover, .yes-option input[type="radio"]:checked ~ * {
    border-color: #28a745;
}

.yes-option input[type="radio"]:checked + .radio-custom {
    border-color: #28a745;
    background: #28a745;
}

.yes-option i {
    color: #28a745;
}

.no-option {
    border-color: #dc3545;
}

.no-option:hover, .no-option input[type="radio"]:checked ~ * {
    border-color: #dc3545;
}

.no-option input[type="radio"]:checked + .radio-custom {
    border-color: #dc3545;
    background: #dc3545;
}

.no-option i {
    color: #dc3545;
}

/* Details Section */
.details-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.details-section.show {
    border-color: #28a745;
    background: #f8fff9;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.footer p {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.admin-link {
    margin-top: 20px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.admin-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    margin-bottom: 20px;
}

.modal-header i {
    font-size: 3em;
    color: #28a745;
    margin-bottom: 15px;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
}

.modal-body p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-close {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2em;
    }
    
    .couple-names {
        font-size: 1.4em;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .radio-option {
        padding: 15px;
    }
    
    .modal-content {
        margin: 25% auto;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6em;
    }
    
    .couple-names {
        font-size: 1.2em;
    }
    
    .form-header h3 {
        font-size: 1.6em;
    }
    
    .date-info {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Animation for form reveal */
.details-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.details-section.show {
    opacity: 1;
    max-height: 500px;
    margin-top: 20px;
}

/* Loading state for submit button */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}