/* Container styles */
/* .container {
    max-width: 500px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
} */

.container.fade-out {
    transform: translateY(-20px);
    opacity: 0;
}

.container.fade-in {
    transform: translateY(0);
    opacity: 1;
}

/* Heading styles */
.header1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
    position: relative;
}

.header1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

input.error-field,
textarea.error-field {
    border-color: #ef4444;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%,
    90% {
        transform: translateX(-1px);
    }
    20%,
    80% {
        transform: translateX(2px);
    }
    30%,
    50%,
    70% {
        transform: translateX(-4px);
    }
    40%,
    60% {
        transform: translateX(4px);
    }
}

/* Star rating styles */
.rating-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.stars {
    display: flex;
    margin-right: 10px;
}

.star {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.star svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.star.active svg,
.star:hover svg {
    fill: #ffd700;
    stroke: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.star:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
}

/* Button styles */
/* button {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

button:active {
    transform: translateY(0);
}

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%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
} */

/* Success message styles */
.success-message {
    text-align: center;
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
}

.success-title {
    color: #10b981;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-text {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Responsive styles */
@media (max-width: 500px) {
    /* .container {
        padding: 20px;
    } */

    h1 {
        font-size: 24px;
    }

    .star {
        width: 25px;
        height: 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}
.form-group:nth-child(2) {
    animation-delay: 0.2s;
}
.form-group:nth-child(3) {
    animation-delay: 0.3s;
}
.form-group:nth-child(4) {
    animation-delay: 0.4s;
}
button {
    animation: fadeIn 0.5s ease-out 0.5s forwards;
    opacity: 0;
}

.success-message {
    animation: fadeIn 0.5s ease-out 1s forwards;
    opacity: 0;
}

/* Error message styles */

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.active {
    display: block;
}

.star-rating {
    direction: rtl;
    display: inline-flex;
    justify-content: flex-start;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input[type="radio"]:checked ~ label {
    color: #f5c518;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5c518;
}

