

.contact-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    direction: rtl;
    font-family: inherit;
}

#contact {
    scroll-margin-top: 100px;
}

.contact-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b51e0, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #5b6b82;
    font-size: 1rem;
    font-weight: 400;
}

.messengers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.messenger-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.messenger-card:hover {
    transform: translateY(-4px);
    border-color: #9b51e0;
    box-shadow: 0 16px 28px -8px rgba(155, 81, 224, 0.15);
    background: #ffffff;
}

.messenger-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fc;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.messenger-card:hover .messenger-icon {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    transform: scale(1.02);
}

.messenger-icon img {
    width: 26px;
    height: 26px;
    display: block;
}

.messenger-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.messenger-info span {
    font-size: 0.7rem;
    color: #5b6b82;
    font-weight: 400;
}

.hours-section {
    margin-bottom: 2rem;
}

.hours-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.hours-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.hours-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hours-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

.hours-content {
    flex: 1;
}

.hours-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hour-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
}

.hour-item.highlight {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-weight: 500;
}

.hour-item.highlight span:last-child {
    color: #16a34a;
    font-weight: 600;
}

.email-section {
    margin-bottom: 2rem;
}

.email-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.email-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.email-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

.email-content {
    flex: 1;
}

.email-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.email-content p {
    font-size: 0.85rem;
    color: #5b6b82;
    margin-bottom: 0.5rem;
}

.email-link {
    font-size: 1rem;
    font-weight: 600;
    color: #9b51e0;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    direction: ltr;
}

.email-link:hover {
    color: #7c3aed;
    gap: 0.75rem;
}

.form-section {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem 2rem 2rem;
    border: 1px solid #f0f2f5;
    margin-top: 1rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b51e0, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #5b6b82;
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.input-group {
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid #eef2ff;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafcff;
    box-sizing: border-box;
    text-align: right;
    direction: rtl;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #9b51e0;
    box-shadow: 0 0 0 3px rgba(155, 81, 224, 0.06);
    background: #ffffff;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid #eef2ff;
    border-radius: 1rem;
    background: #fafcff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: #9b51e0;
    background: #ffffff;
}

.custom-select-trigger.active {
    border-color: #9b51e0;
    box-shadow: 0 0 0 3px rgba(155, 81, 224, 0.06);
}

.selected-value {
    color: #1e293b;
    font-size: 0.95rem;
}

.selected-value.placeholder {
    color: #5b6b82;
}

.select-arrow {
    transition: transform 0.3s ease;
}

.submit-btn {
    background: linear-gradient(135deg, #9b51e0, #7c3aed);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(155, 81, 224, 0.4);
}

.subject-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.subject-modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.subject-modal.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
    background: white;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b51e0, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fc;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #5b6b82;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0.75rem 1rem;
    max-height: 55vh;
    overflow-y: auto;
}

.subject-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subject-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafcff;
    border: 1.5px solid transparent;
}

.subject-option:hover {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #e9d5ff;
    transform: translateX(-4px);
}

.subject-option.selected {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #9b51e0;
}

.subject-option.selected .option-check svg {
    stroke: #9b51e0;
    opacity: 1;
}

.option-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.option-text {
    flex: 1;
}

.option-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.option-desc {
    display: block;
    font-size: 0.7rem;
    color: #5b6b82;
}

.option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-check svg {
    stroke: #cbd5e1;
    opacity: 0;
    transition: all 0.2s ease;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f2f5;
    background: white;
}

.modal-cancel,
.modal-confirm {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.modal-cancel {
    background: #f8f9fc;
    color: #5b6b82;
}

.modal-cancel:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal-confirm {
    background: linear-gradient(135deg, #9b51e0, #7c3aed);
    color: white;
}

.modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 81, 224, 0.3);
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #9b51e0;
    border-radius: 10px;
}

.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(155, 81, 224, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    max-width: 90%;
    white-space: nowrap;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.success {
    background: linear-gradient(135deg, #166534, #14532d);
    border-color: rgba(74, 222, 128, 0.4);
}

.custom-toast.error {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    border-color: rgba(248, 113, 113, 0.4);
}

.toast-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes formSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.form-success-animation {
    animation: formSuccess 0.4s ease;
}

@media (max-width: 992px) {
    .messengers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-main {
        padding: 7rem 1.5rem 4rem;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding: 6rem 1.25rem 5rem;
    }

    #contact {
        scroll-margin-top: 80px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .messengers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .messenger-card {
        padding: 0.8rem 1rem;
    }

    .messenger-icon {
        width: 42px;
        height: 42px;
    }

    .messenger-icon img {
        width: 22px;
        height: 22px;
    }

    .messenger-info h3 {
        font-size: 0.9rem;
    }

    .messenger-info span {
        font-size: 0.65rem;
    }

    .hours-card {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .hours-icon {
        width: 50px;
        height: 50px;
    }

    .hours-icon img {
        width: 26px;
        height: 26px;
    }

    .hours-list {
        justify-content: center;
    }

    .hour-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .email-card {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .email-icon {
        width: 50px;
        height: 50px;
    }

    .email-icon img {
        width: 26px;
        height: 26px;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }

    .custom-toast {
        white-space: normal;
        text-align: center;
        max-width: 85%;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 5.5rem 1rem 4rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .messengers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .messenger-card {
        padding: 0.7rem 0.8rem;
        gap: 0.75rem;
    }

    .messenger-icon {
        width: 38px;
        height: 38px;
    }

    .messenger-icon img {
        width: 20px;
        height: 20px;
    }

    .messenger-info h3 {
        font-size: 0.85rem;
    }

    .messenger-info span {
        font-size: 0.6rem;
    }

    .hour-item {
        font-size: 0.75rem;
    }

    .input-group input,
    .input-group textarea,
    .custom-select-trigger {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .messengers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .messenger-card {
        padding: 0.6rem 0.7rem;
    }

    .messenger-icon {
        width: 34px;
        height: 34px;
    }

    .messenger-icon img {
        width: 18px;
        height: 18px;
    }

    .messenger-info h3 {
        font-size: 0.8rem;
    }

    .contact-main {
        padding: 5rem 0.75rem 3.5rem;
    }
}