/* CSS Document */
@charset "UTF-8";

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.eot');
    src: local('../fonts/Vazir'), url('../fonts/Vazir.woff') format('woff'), url('../fonts/Vazir.ttf') format('truetype');
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Vazir', Tahoma, Arial;
    background-image: url('../bg.jpg');
    background-repeat: repeat;
    background-color: #f0f8f0;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    body {
        display: block;
        align-items: unset;
        padding: 10px 0;
    }

    .register {
        padding: 10px;
    }

    .register-right {
        margin-top: 15px;
    }

    .register-heading {
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .register .register-form {
        margin-top: 14px !important;
    }
    
    .logos-container .sponsor-logo {
        width: 40%;
        max-width: 120px;
    }
}

input[type=submit] {
    outline: none;
}

input[type=submit]:hover {
    opacity: .9;
}

input[type=email], input[type=password], input[type=text], input[type=tel], input[type=url], textarea, select {
    text-align: right;
    direction: rtl;
}

.register {
    margin: 0 auto;
    padding: 3%;
}

.register-right {
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0A2459 0%, #0D3078 100%);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(10, 36, 89, 0.3);
}

.welcome-box {
    padding: 20px;
}

.welcome-box h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.welcome-box p {
    margin-bottom: 5px;
}

.welcome-box i {
    color: #fff;
    margin-bottom: 20px;
}

.deadline-section {
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.deadline-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.deadline-text strong {
    display: block;
    margin-bottom: 0;
}

.contact-info-section {
    margin-top: 0;
    text-align: right;
    padding-top: 15px;
}

.contact-info-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.contact-details {
    text-align: right;
}

.contact-item {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 5px 0;
    line-height: 1.4;
}

.contact-item i {
    margin-left: 8px;
    color: #fff;
    width: 20px;
    text-align: center;
    animation: none;
}

.contact-item strong {
    margin-left: 5px;
}

.register-right input {
    border: none;
    border-radius: 1.5rem;
    padding: 2%;
    width: 80%;
    background: #f8f9fa;
    font-weight: bold;
    color: #383d41;
    margin-top: 30%;
    margin-bottom: 3%;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    .register-right input {
        margin-top: 0;
    }
}

.register-left {
    background: #f8f9fa;
    border-top-right-radius: 10% 50%;
    border-bottom-right-radius: 10% 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 767px) {
    .register-left {
        border-radius: 10px;
    }
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 5%;
    flex-wrap: wrap;
}

.logos-container .sponsor-logo {
    width: 45%;
    max-width: 150px;
    height: auto;
    margin: 0;
}

.register-right img {
    width: 70%;
    margin-bottom: 5%;
}

.register-right p {
    font-weight: lighter;
    padding: 12%;
    margin-top: -9%;
}

.register .register-form {
    width: 100%;
    padding: 10%;
    margin-top: 10%;
}

.btnRegister {
    float: left;
    margin-top: 10%;
    border: none;
    border-radius: 1.5rem;
    padding: 2%;
    background: #0A2459;
    color: #fff;
    font-weight: 600;
    width: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btnRegister:hover {
    background: #0D3078;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 36, 89, 0.4);
}

.register .nav-tabs {
    margin-top: 3%;
    border: none;
    background: #003300;
    border-radius: 1.5rem;
    width: 28%;
    float: left;
}

.register .nav-tabs .nav-link {
    padding: 2%;
    height: 34px;
    font-weight: 600;
    color: #fff;
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

.register .nav-tabs .nav-link:hover {
    border: none;
}

.register .nav-tabs .nav-link.active {
    width: 100px;
    color: #003300;
    border: 2px solid #003300;
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

.register-heading {
    text-align: center;
    margin-top: 8%;
    margin-bottom: -15%;
    color: #0A2459;
    font-weight: bold;
    font-size: 1.5rem;
}

.form-group label {
    color: #495057;
    font-weight: normal;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #003300;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 0, 0.25);
    outline: none;
}

.alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #003300;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.text-danger {
    color: #dc3545 !important;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
        height: auto;
    }
    
    body {
        display: block;
        align-items: normal;
    }
    
    .register {
        margin-top: 1%;
        padding: 1%;
    }
    
    .register .register-form {
        padding: 5%;
        margin-top: 5%;
    }
    
    .register-heading {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .btnRegister {
        width: 100%;
        margin-top: 5%;
    }
    
    /* فیکس بخش حامیان در موبایل */
    .sponsors-section {
        margin-top: 30px !important;
        padding-top: 25px;
    }
    
    .sponsors-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-top: 10px;
    }
}

/* بخش حامیان مراسم */
.sponsors-section {
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.sponsors-title {
    color: #0A2459;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsors-logos .sponsor-logo-item {
    width: 45%;
    max-width: 150px;
    height: auto;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sponsors-logos .sponsor-logo-item {
        width: 40%;
        max-width: 120px;
    }
}
