* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1f3342 0%, #2a4a5f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1100px;
    max-height: 650px;
    width: 100%;
    height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.image-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    color: white;
}

.company-info {
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.company-info img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 15px;
}

.company-tagline {
    text-align: center;
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.5;
}

.security-features {
    text-align: left;
    margin-top: 20px;
    width: 100%;
}

.security-features h3 {
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
    opacity: 0.95;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.feature-icon img {
    height: 25px;
    width: 25px;
    display: block;
}

.form-section {
    padding: 45px 50px;
    overflow-y: auto;
    background: #fafbfc;
}

.form-section::-webkit-scrollbar {
    width: 6px;
}

.form-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-section::-webkit-scrollbar-thumb {
    background: #3a5fb0;
    border-radius: 3px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: #1f3342;
    font-size: 26px;
    margin-bottom: 6px;
    font-weight: 700;
}

.form-header p {
    color: #6b7280;
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    color: #1f3342;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3a5fb0;
    box-shadow: 0 0 0 3px rgba(58, 95, 176, 0.1);
}

.form-group textarea {
    resize: none;
    height: 70px;
}

.phone-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

.amount-input-group {
    display: flex;
    width: 100%;
}

.amount-input-group input {
    flex: 1;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
}

.amount-input-group input:focus {
    border-left: 1.5px solid #3a5fb0;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #3a5fb0 0%, #2a4a8f 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(58, 95, 176, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 95, 176, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* SHORT HEIGHT SCREENS */
@media (max-height: 700px) {
    .container {
        max-height: 580px;
    }
    
    .image-section {
        padding: 30px 25px;
    }
    
    .company-info img {
        max-width: 280px;
        margin-bottom: 10px;
    }
    
    .company-tagline {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .security-features h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .feature-item {
        font-size: 13px;
        gap: 8px;
    }
    
    .feature-icon img {
        width: 20px;
        height: 20px;
    }
    
    .form-section {
        padding: 35px 40px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-row {
        margin-bottom: 12px;
        gap: 12px;
    }
}

/* iPAD PRO 12.9" AND LARGE TABLETS */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        padding: 15px;
        align-items: flex-start;
    }
    
    .container {
        grid-template-columns: 1fr;
        max-height: none;
        height: auto;
    }

    .image-section {
        padding: 30px;
        min-height: 120px;
    }
    
    /* HIDE EVERYTHING EXCEPT LOGO */
    .company-tagline,
    .security-features {
        display: none;
    }
    
    .company-info img {
        max-width: 250px;
        margin-bottom: 0;
    }

    .form-section {
        padding: 35px 40px 40px 40px;
        overflow-y: visible;
    }
}

/* TABLET VIEW (iPad, iPad Air, iPad Mini) */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        grid-template-columns: 1fr;
        max-height: none;
        height: auto;
        margin-top: 10px;
    }

    .image-section {
        padding: 25px 20px;
        min-height: 100px;
    }
    
    /* HIDE EVERYTHING EXCEPT LOGO */
    .company-tagline,
    .security-features {
        display: none;
    }
    
    .company-info img {
        max-width: 220px;
        margin-bottom: 0;
    }

    .form-section {
        padding: 10px 25px 35px 25px;
        overflow-y: visible;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* MOBILE VIEW (iPhone 14 Pro Max, large phones) */
@media (max-width: 430px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .container {
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .image-section {
        padding: 20px 15px;
        min-height: 90px;
    }
    
    /* HIDE EVERYTHING EXCEPT LOGO */
    .company-tagline,
    .security-features {
        display: none;
    }
    
    .company-info img {
        max-width: 200px;
        margin-bottom: 0;
    }
    
    .form-section {
        padding: 25px 20px 30px 20px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .phone-group {
        grid-template-columns: 95px 1fr;
        gap: 8px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* STANDARD MOBILE VIEW */
@media (max-width: 390px) {
    .image-section {
        padding: 18px 12px;
        min-height: 80px;
    }
    
    .company-info img {
        max-width: 180px;
    }
    
    .form-section {
        padding: 20px 15px 25px 15px;
    }
    
    .phone-group {
        grid-template-columns: 90px 1fr;
    }
    
    .amount-input-group {
        grid-template-columns: 50px 1fr;
    }
    
}

/* SMALL MOBILE VIEW */
@media (max-width: 360px) {
    body {
        padding: 8px;
    }
    
    .image-section {
        padding: 15px 10px;
        min-height: 75px;
    }
    
    .company-info img {
        max-width: 160px;
    }
    
    .form-section {
        padding: 18px 12px 22px 12px;
    }
    
    .form-header h2 {
        font-size: 18px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 13px;
    }
}

/* Select2 single select height fix */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

/* Text inside select */
.select2-selection__rendered {
    display: flex !important;
    align-items: center;
    
    gap: 10px;
    line-height: normal !important;
    padding-left: 0 !important;
}

/* Dropdown options alignment */
.select2-results__option {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Flag icon size fix */
.flag-icon {
    width: 20px;
    height: 14px;
    line-height: 14px;
    border-radius: 2px;
}
