/**
 * Wedding Wishes Styles
 */

/* Container */
.wedding-wishes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Form Styles */
.wedding-wishes-form-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    position: relative;
    border: 1px solid #f0f0f0;
}

.wedding-wishes-form-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #f8c8dc;
    border-radius: 12px;
    opacity: 0.5;
    z-index: -1;
}

.wedding-wishes-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.wedding-wishes-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #777;
}

.wedding-wishes-form-message {
    margin-bottom: 1.5rem;
}

.wedding-wishes-success {
    background-color: #e6f7e6;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #2e7d32;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.wedding-wishes-success.show {
    opacity: 1;
    transform: translateY(0);
}

.wedding-wishes-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #c62828;
}

.wedding-wishes-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .wedding-wishes-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.wedding-wishes-form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.wedding-wishes-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.wedding-wishes-form-group .required {
    color: #e53935;
}

.wedding-wishes-form-group input,
.wedding-wishes-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.wedding-wishes-form-group input:focus,
.wedding-wishes-form-group textarea:focus {
    outline: none;
    border-color: #f8c8dc;
    box-shadow: 0 0 0 3px rgba(248, 200, 220, 0.2);
}

.wedding-wishes-form-submit {
    text-align: center;
}

.wedding-wishes-submit-btn {
    background: linear-gradient(135deg, #f8c8dc 0%, #e2a8ca 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 200, 220, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wedding-wishes-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 200, 220, 0.6);
}

.wedding-wishes-submit-btn:active {
    transform: translateY(0);
}

.wedding-wishes-submit-btn.submitting {
    opacity: 0.7;
    cursor: not-allowed;
}

.wedding-wishes-submit-text {
    margin-right: 8px;
}

.wedding-wishes-submit-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.wedding-wishes-submit-btn:hover .wedding-wishes-submit-icon {
    transform: scale(1.2);
}

/* Wishes List Styles */
.wedding-wishes-list-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #f0f0f0;
}

.wedding-wishes-list-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #f8c8dc;
    border-radius: 12px;
    opacity: 0.5;
    z-index: -1;
}

.wedding-wishes-list-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

.wedding-wishes-no-wishes {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 2rem 0;
}

.wedding-wishes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .wedding-wishes-list {
        grid-template-columns: 1fr;
    }
}

.wedding-wishes-item {
    background: #fcf7f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.wedding-wishes-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wedding-wishes-item::before {
    content: '\201C';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 3rem;
    color: #f8c8dc;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.wedding-wishes-item-content {
    position: relative;
    z-index: 1;
}

.wedding-wishes-item-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.wedding-wishes-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.wedding-wishes-item-name {
    font-weight: 600;
    color: #666;
}

.wedding-wishes-item-date {
    color: #999;
    font-size: 0.8rem;
}

/* Flying Hearts Animation */
@keyframes flyingHeart {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-80vh) scale(0.8);
        opacity: 0;
    }
}

.flying-heart {
    position: absolute;
    bottom: 0;
    color: #f8c8dc;
    animation: flyingHeart 3s ease-in-out forwards;
    z-index: 10;
    user-select: none;
    pointer-events: none;
}
