footer {
    display: flex;
    flex-wrap: wrap;
    min-height: 220px;
    color: aliceblue;
    margin-top: 50px;
    margin-bottom: 100px;
    padding: 20px;
    gap: 20px;

    .left-footer {
        flex: 1;
        min-width: 300px;
        direction: rtl;
        padding-right: 30px;
        border-right: 2px solid var(--secondary-color);
        
        div {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .address-footer {
            font-size: 16px;
            font-weight: 500;
            color: var(--quaternary-color);
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .rights {
            font-size: 16px;
            font-weight: 700;
            color: var(--secondary-color);
            margin-top: 20px;
        }

        .playstore-button {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            background: var(--secondary-color);
            border-radius: 12px;
            text-decoration: none;
            color: var(--quaternary-color);
            transition: all 0.3s ease;
            min-width: 200px;

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 5px 15px rgba(3, 153, 144, 0.3);
            }

            .icon {
                width: 24px;
                height: 24px;
            }

            .texts {
                display: flex;
                flex-direction: column;
                text-align: left;

                .text-1 {
                    font-size: 10px;
                    opacity: 0.8;
                }

                .text-2 {
                    font-size: 14px;
                    font-weight: 600;
                }
            }
        }
    }

    .right-footer {
        width: 350px;
        margin-left: 30px;
        min-width: 300px;

        form {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

 
        textarea , input {
            width: 100%;
            height: 150px;
            color: var(--secondary-color);
            background-color: rgba(240, 248, 255, 0.1);
            border: none;
            border-radius: 24px;
            outline: none;
            padding: 15px;
            text-align: right;
            resize: vertical;
            font-family: 'Cairo', sans-serif;
            margin-bottom: 10px;
            transition: all 0.3s ease;

            &:focus {
                outline: 2px solid var(--secondary-color);
            }

            &::placeholder {
                color: var(--quaternary-color);
                opacity: 0.7;
            }
            
            /* Validation states */
            &.is-valid {
                border: 2px solid #28a745;
                box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
            }
            
            &.is-invalid {
                border: 2px solid #dc3545;
                box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
            }
        }
        
        /* Alert message styles */
        .alert {
            margin-top: 10px;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s ease;
            
            &.alert-success {
                background: rgba(40, 167, 69, 0.1);
                border: 1px solid #28a745;
                color: #28a745;
            }
            
            &.alert-danger {
                background: rgba(220, 53, 69, 0.1);
                border: 1px solid #dc3545;
                color: #dc3545;
            }
        }

        .button-message {
            width: 100%;
            text-align: center;
            padding-block: 12px;
            background-color: var(--secondary-color);
            border-radius: 16px;
            border: none;
            outline: none;
            color: var(--quaternary-color);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;

            &:hover {
                background-color: var(--primary-color);
                transform: translateY(-2px);
            }
        }
    }
}

.social-media {
    width: 70px;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    .social-icon {
        width: 45px;
        height: 45px;
        display: flex;
        padding: 13px;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        cursor: pointer;

        &:hover {
            background-color: var(--primary-color);
            transform: scale(1.1);
        }

        .social-svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
            color: var(--quaternary-color);
        }
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    footer {
        .left-footer {
            padding-right: 20px;
        }

        .right-footer {
            margin-left: 20px;
        }

        .social-media {
            margin-left: 20px;
        }
    }
}

@media (max-width: 992px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;

        .left-footer {
            width: 100%;
            border-right: none;
            border-bottom: 2px solid var(--secondary-color);
            padding-right: 0;
            padding-bottom: 30px;

            div {
                justify-content: center;
            }
        }

        .right-footer {
            width: 100%;
            max-width: 500px;
            margin-left: 0;
        }

        .social-media {
            width: 100%;
            flex-direction: row;
            justify-content: center;
            margin-left: 0;
            margin-top: 20px;
        }
    }
}

@media (max-width: 768px) {
    footer {
        margin-top: 30px;
        margin-bottom: 50px;
        padding: 15px;

        .left-footer {
            .address-footer {
                font-size: 14px;
            }

            .rights {
                font-size: 14px;
            }

            div {
                flex-direction: column;
                align-items: center;
            }

            .playstore-button {
                min-width: 180px;
                padding: 10px 15px;

                .texts .text-2 {
                    font-size: 12px;
                }
            }
        }

        .right-footer {
            textarea {
                height: 120px;
                padding: 12px;
            }

            .button-message {
                padding-block: 10px;
            }
        }

        .social-media {
            gap: 8px;

            .social-icon {
                width: 40px;
                height: 40px;
                padding: 10px;

                .social-svg {
                    width: 18px;
                    height: 18px;
                }
            }
        }
    }
}

@media (max-width: 576px) {
    footer {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 10px;

        .left-footer {
            padding-bottom: 20px;

            .address-footer {
                font-size: 13px;
                margin-bottom: 15px;
            }

            .rights {
                font-size: 13px;
                margin-top: 15px;
            }

            .playstore-button {
                min-width: 160px;
                padding: 8px 12px;

                .icon {
                    width: 20px;
                    height: 20px;
                }

                .texts {
                    .text-1 {
                        font-size: 9px;
                    }

                    .text-2 {
                        font-size: 11px;
                    }
                }
            }
        }

        .right-footer {
            textarea {
                height: 100px;
                padding: 10px;
                font-size: 14px;
            }

            .button-message {
                padding-block: 8px;
                font-size: 14px;
            }
            
            /* Validation styles */
            input.is-valid,
            textarea.is-valid {
                border: 2px solid #28a745 !important;
                box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
            }
            
            input.is-invalid,
            textarea.is-invalid {
                border: 2px solid #dc3545 !important;
                box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
            }
            
            /* Alert message styles */
            .alert {
                margin-top: 8px;
                padding: 8px 12px;
                font-size: 12px;
            }
        }

        .social-media {
            gap: 6px;

            .social-icon {
                width: 35px;
                height: 35px;
                padding: 8px;

                .social-svg {
                    width: 16px;
                    height: 16px;
                }
            }
        }
    }
}

@media (max-width: 480px) {
    footer {
        .left-footer {
            .playstore-button {
                min-width: 140px;
                padding: 6px 10px;

                .texts {
                    .text-1 {
                        font-size: 8px;
                    }

                    .text-2 {
                        font-size: 10px;
                    }
                }
            }
        }

        .right-footer {
            textarea {
                height: 80px;
                padding: 8px;
                font-size: 13px;
            }

            .button-message {
                padding-block: 6px;
                font-size: 13px;
            }
        }

        .social-media {
            .social-icon {
                width: 30px;
                height: 30px;
                padding: 6px;

                .social-svg {
                    width: 14px;
                    height: 14px;
                }
            }
        }
        
        .right-footer {
            .alert {
                margin-top: 6px;
                padding: 6px 10px;
                font-size: 11px;
            }
        }
    }
}

