/* General body styling */
body {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(to bottom right, #ed0b6d, #ff5fa4);
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

/* Wrapper styling */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 700px;
}

/* Textarea styling */
textarea {
    resize: vertical;
    border-radius: 15px;
    padding: 15px;
    border: none;
    width: 100%;
    max-width: 100%;
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Button styling */
.submit-button-custom {
    background-color: #fff;
    color: #ed0b6d;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-button-custom:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

/* Custom margins */
.text-area-custom,
.submit-button-custom,
.label-custom {
    margin-bottom: 30px;
}

/* Loader animation */
.loader {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #fff;
    border-right: 12px solid #ed0b6d;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    animation: spin 1.2s ease-in-out infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1001;
}

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

/* Overlay background */
#overlay {
    position: fixed;
    display: none;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

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

/* Modal dialog */
.modal-dialog {
    max-width: 600px;
    margin: 100px auto;
    transition: transform 0.3s ease-in-out;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: right;
    animation: slideDown 0.3s ease-out;
}

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