/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.header-section {
    min-height: 100vh;
    background-image: url('../index/header-bd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* Main Title */
.main-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Form and Image Container */
.form-image-container {
    width: 60%;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: row;
}

/* Form Section */
.form-section {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.registration-form {
    width: 100%;
}

.form-title {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Form Groups */
.form-group {
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e40af;
}

/* Phone Group */
.phone-group {
    position: relative;
}

.phone-group input {
    padding-right: 120px;
}

.country-selector {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.country-flag {
    font-size: 18px;
}

.country-code {
    font-weight: bold;
    color: #374151;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
}

.error-msg.hide {
    display: none;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #1e40af;
    border-color: #1e40af;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(to right, #1B58FF, #0A37B4);
    color: white;
    padding: 14px 80px;
    border: 0.76px solid #002895;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #0A37B4, #1B58FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 88, 255, 0.3);
}

/* Form Footer */
.form-footer {
    text-align: center;
}

.company-info {
    margin-bottom: 8px;
}

.license-info,
.cysec-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.eu-flag {
    font-size: 16px;
}

.license-number {
    font-size: 11px;
}

/* Rating Section */
.rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 18px;
    color: #d1d5db;
}

.star.filled {
    color: #10b981;
}

.trustpilot {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.trustpilot-star {
    color: #10b981;
    font-size: 14px;
}

.trustpilot-text {
    color: #10b981;
    font-weight: bold;
}

.comment-text {
    color: #6b7280;
}

/* Image Section */
.image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.trading-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 435px) {
    .header-section {
        padding: 0;
        direction: ltr;
    }
    
    .container {
        padding: 15px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        direction: ltr;
    }
    
    .logo {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .form-image-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
        flex-direction: column;
        gap: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        direction: ltr;
    }
    
    .form-section {
        width: 100%;
        max-width: 90%;
        padding: 15px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .image-section {
        width: 100%;
        padding: 1rem 0;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .form-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .submit-btn {
        padding: 14px 40px;
        font-size: 16px;
        width: 100%;
    }
    
    .trading-image {
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    /* Second Section Mobile */

    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .content-container {
        width: 90%;
        flex-direction: column;
        gap: 30px;
    }
    
    .text-section {
        order: 3;
    }
    
    .image-section {
        order: 2;
    }
    
    .content-text {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .text-section {
        text-align: center;
    }
    
    .arab-image {
        margin: 0 auto;
        display: block;
    }
    
    /* Third Section Mobile */
    .third-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .section-title-white {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .content-container {
        width: 90%;
        flex-direction: column;
        gap: 30px;
    }
    
    .text-section {
        order: 3;
        text-align: center;
    }
    
    .image-section {
        order: 2;
    }
    
    .content-text-white {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .mobile-image {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .form-image-container {
        width: 100%;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    /* Second Section Tablet */
    .second-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .content-container {
        width: 80%;
        gap: 30px;
    }
    
    .content-text {
        font-size: 1.2rem;
    }
    
    /* Third Section Tablet */
    .third-section {
        padding: 60px 0;
    }
    
    .section-title-white {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .content-text-white {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .form-image-container {
        width: 70%;
    }
}

/* Second Section */
.second-section {
    background-color: white;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    color: #002895;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

.content-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.text-section {
    flex: 1;
}

.content-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: right;
}

.content-text:last-child {
    margin-bottom: 0;
}

.arab-image {
    max-width: 100%;
    height: auto;
}

/* Third Section */
.third-section {
    background-image: url('../index/selector-3-bd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.third-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.third-section .container {
    position: relative;
    z-index: 1;
}

.section-title-white {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content-text-white {
    font-size: 1.3rem;
    line-height: 1.8;
    color: white;
    margin-bottom: 25px;
    text-align: right;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-text-white:last-child {
    margin-bottom: 0;
}

.mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Fourth Section - Popular Stocks */
.fourth-section {
    background-color: white;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title-blue {
    color: #002895;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
}

.stocks-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    direction: ltr;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #333;
}

.label-right {
    text-align: right;
}

.label-left {
    text-align: left;
}

.progress-bar {
    width: 100%;
    height: 8px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-fill.sellers {
    background-color: #ef4444;
}

.progress-fill.buyers {
    background-color: #10b981;
}

.stock-action {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.stock-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.stock-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.stock-percent {
    font-size: 1.1rem;
    font-weight: bold;
}

.stock-percent.negative {
    color: #ef4444;
}

.stock-percent.positive {
    color: #10b981;
}

.stock-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.stock-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.trade-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: white;
    color: #002895;
    border: 2px solid #002895;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.trade-btn:hover {
    background-color: #002895;
    color: white;
}

/* Mobile Responsive for Fourth Section */
@media (max-width: 768px) {
    .fourth-section {
        padding: 40px 0;
        min-height: auto;
    }

    .section-title-blue {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .stocks-container {
        width: 95%;
        gap: 0;
    }

    .stock-item {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        padding: 20px 0;
        align-items: center;
        border-bottom: 1px solid #C3C3C3;
        justify-content: space-between;
        direction: ltr;
    }

    .stock-item:last-child {
        border-bottom: none;
    }

    .stock-info {
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        gap: 5px;
        order: 2;
        text-align: right;
    }

    .stock-icon {
        display: none;
    }

    .stock-name {
        font-size: 1.2rem;
    }

    .stock-percent {
        font-size: 1.1rem;
    }

    .stock-progress {
        display: none;
    }

    .stock-action {
        flex: none;
        order: 1;
    }

    .trade-btn {
        width: auto;
        padding: 10px 30px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Fifth Section - Platform */
.fifth-section {
    background-image: url('../index/selector-5-bd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fifth-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.fifth-section .logo-container {
    margin-bottom: 20px;
}

.logo-white {
    max-width: 200px;
    height: auto;
}

.platform-text {
    color: white;
    font-size: 1.5rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.platform-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.platform-gif {
    max-width: 640px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive for Fifth Section */
@media (max-width: 768px) {
    .fifth-section {
        padding: 40px 0;
        min-height: auto;
    }

    .logo-white {
        max-width: 150px;
    }

    .platform-text {
        font-size: 1.2rem;
        padding: 0 20px;
    }

    .platform-gif {
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

/* Footer */
.footer {
    width: 100%;
}

.footer-top {
    background-color: white;
    padding: 30px 0;
}

.footer-container {
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    direction: rtl;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #002895;
}

.footer-link-long {
    text-align: right;
}

.footer-bottom {
    background-color: #242424;
    padding: 15px 0;
    text-align: center;
}

.footer-copyright {
    color: white;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-top {
        padding: 20px 0;
    }

    .footer-container {
        width: 95%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-logo {
        order: 1;
    }

    .footer-logo img {
        height: 30px;
    }

    .footer-link {
        order: 2;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }

    .footer-link-long {
        order: 4;
    }

    .footer-bottom {
        padding: 10px 0;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}
