*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("images/caver.jpg") no-repeat center center scroll;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem 0;
    direction: rtl;
}

body::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 0;

}

#main-container{
    height: auto;
    width: 50%;
    z-index: 1;
    border: 2px double transparent;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 6px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

#form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 2rem;
}



.form-main-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    width: 100%;
    gap: .5rem;
}

.form-main-group input:not([type="radio"]):not([type="checkbox"]) , select {
    width: 100%;
    padding: 12px 15px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    font-size: 16px;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#whatsappPhone {
    text-align: right;
}

.form-main-group input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus {
    border-color: #a855f7;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
    outline: none;
}


button {
    width: 100%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 12px;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background: linear-gradient(135deg, #9333ea, #db2777);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

button:disabled {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(0);
    cursor: not-allowed;
    opacity: 0.9;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-bottom-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    margin-right: 0;
    animation: rotation 0.8s linear infinite;
    vertical-align: middle;
    }

    @keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radio-group,
.checkbox-group {
    width: 100%;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}



/* تنسيق التنبيه */
.warning {
    color: red;
    font-size: 1.2rem;
    margin: 5px 0;
    text-align: center;
}

@media (max-width: 740px) {
    #main-container {
        padding: 1rem .75rem;
        width: 90%;
    }
    
}