/* ========================================================================
   CONTACT PAGE STYLES
   Organized by section order as they appear in Contact/Index.cshtml
   Hero section styles are in shared.css
   ======================================================================== */

/* ============================================
   1. CONTACT MAIN SECTION
   ============================================ */

.contact-main-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* --------------------------------------------
   1.1 Contact Form Card
   -------------------------------------------- */

.contact-form-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd54f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--main-color);
}

.form-card-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.form-card-header p {
    color: var(--color-neutral-gray);
    font-size: 0.95rem;
}

/* --------------------------------------------
   1.2 Blueprint Form Styles
   -------------------------------------------- */

.blueprint-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.blueprint-form .form-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1rem;
    z-index: 2;
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

.textarea-wrapper .input-icon {
    top: 1.5rem;
    transform: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

[dir="rtl"] .form-input {
    padding: 1rem 3rem 1rem 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--accent-color-rgb), 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.input-label {
    position: absolute;
    left: 3rem;
    top: -0.5rem;
    background: #fff;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--main-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[dir="rtl"] .input-label {
    left: auto;
    right: 3rem;
}

.form-input:focus+.input-label,
.form-input:not(:placeholder-shown)+.input-label {
    opacity: 1;
}

/* --------------------------------------------
   1.3 Submit Button
   -------------------------------------------- */

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-lighter) 100%);
    color: #fff;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-arrow {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

[dir="rtl"] .submit-btn:hover .btn-arrow {
    transform: translateX(-5px);
}

/* --------------------------------------------
   1.4 Contact Info Side
   -------------------------------------------- */

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.info-card-header i {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item .info-icon {
    width: 45px;
    height: 45px;
    background: rgba(var(--accent-color-rgb), 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item .info-content h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.25rem;
}

.info-item .info-content p,
.info-item .info-content a {
    color: var(--color-neutral-gray);
    font-size: 0.95rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item .info-content a:hover {
    color: var(--accent-color);
}

/* Social Card */
.social-card {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-lighter) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.social-card h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Response Card */
.response-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd54f 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.response-icon {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.response-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.25rem;
}

.response-content p {
    color: var(--main-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}


/* ============================================
   2. MAP SECTION
   ============================================ */

.map-section {
    padding: 3rem 0;
}

.map-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--main-color);
    color: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.map-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.map-wrapper {
    background: #fff;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.map-frame-wrapper {
    overflow: hidden;
    height: 350px;
}

.map-iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}


/* ============================================
   3. FAQ SECTION
   ============================================ */

.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

[dir="rtl"] .faq-item {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.faq-icon {
    width: 45px;
    height: 45px;
    background: rgba(var(--accent-color-rgb), 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--color-neutral-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   4. RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card {
        display: flex;
        flex-direction: column;
    }

    .info-card-header {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .contact-main-section {
        padding: 2rem 0;
    }

    .contact-form-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .form-card-header {
        margin-bottom: 1.5rem;
    }

    .form-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .form-card-header h3 {
        font-size: 1.25rem;
    }

    .form-card-header p {
        font-size: 0.85rem;
    }

    .blueprint-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blueprint-form .form-group {
        margin-bottom: 1rem;
    }

    .form-input {
        padding: 0.875rem 1rem 0.875rem 2.75rem;
        font-size: 0.95rem;
    }

    [dir="rtl"] .form-input {
        padding: 0.875rem 2.75rem 0.875rem 1rem;
    }

    .input-icon {
        left: 0.875rem;
        font-size: 0.9rem;
    }

    [dir="rtl"] .input-icon {
        left: auto;
        right: 0.875rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-arrow {
        width: 30px;
        height: 30px;
    }

    .info-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .info-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .info-card-header i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .info-card-header h4 {
        font-size: 1.1rem;
    }

    .info-list {
        gap: 1rem;
    }

    .info-item .info-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .info-item .info-content h5 {
        font-size: 0.85rem;
    }

    .info-item .info-content p,
    .info-item .info-content a {
        font-size: 0.85rem;
    }

    .social-card {
        padding: 1.25rem;
        border-radius: 15px;
    }

    .social-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .response-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .response-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .response-content h5 {
        font-size: 0.9rem;
    }

    .response-content p {
        font-size: 0.8rem;
    }

    .map-section {
        padding: 2rem 0;
    }

    .map-header {
        padding: 1rem 1.25rem;
        border-radius: 15px 15px 0 0;
    }

    .map-header i {
        font-size: 1.25rem;
    }

    .map-header h3 {
        font-size: 1.1rem;
    }

    .map-frame-wrapper,
    .map-iframe {
        height: 280px;
    }

    .faq-section {
        padding: 3rem 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-item {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .faq-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .faq-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .faq-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .contact-main-section {
        padding: 1.5rem 0;
    }

    .contact-form-card {
        padding: 1.25rem 0.875rem;
        border-radius: 12px;
    }

    .form-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .form-card-header h3 {
        font-size: 1.15rem;
    }

    .info-card {
        padding: 1.25rem 0.875rem;
    }

    .info-item {
        gap: 0.75rem;
    }

    .info-item .info-icon {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .map-frame-wrapper,
    .map-iframe {
        height: 250px;
    }

    .faq-section {
        padding: 2.5rem 0;
    }

    .faq-item {
        padding: 1rem;
    }
}

/* ============================================
   5. TOAST NOTIFICATIONS
   ============================================ */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    z-index: 9999;
    overflow: hidden;
    animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    border-left: 4px solid;
}

[dir="rtl"] .toast-notification {
    right: auto;
    left: 20px;
    border-left: none;
    border-right: 4px solid;
    animation: toastSlideInRtl 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast-success {
    border-color: #10b981;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.toast-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--main-color);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--color-neutral-gray);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: var(--main-color);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    animation: toastProgress 5s linear forwards;
}

[dir="rtl"] .toast-progress {
    left: auto;
    right: 0;
}

.toast-notification.toast-hide {
    animation: toastSlideOut 0.4s ease forwards;
}

[dir="rtl"] .toast-notification.toast-hide {
    animation: toastSlideOutRtl 0.4s ease forwards;
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideInRtl {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastSlideOutRtl {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Responsive Toast */
@media (max-width: 576px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    [dir="rtl"] .toast-notification {
        right: 10px;
        left: 10px;
    }
}