:root {
    --primary: #1a3a5c;
    --primary-light: #2d5a8a;
    --accent: #c9a227;
    --accent-light: #f5ecd3;
    --accent-dark: #a68921;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --success: #48bb78;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.card-brands-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.card-brands-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.card-brands {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.card-brand-logo {
    height: 36px;
    width: auto;
    opacity: 0.85;
}

.card-brand-logo:hover {
    opacity: 1;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.info-panel {
    flex: 0 0 380px;
    background: var(--primary);
    color: var(--white);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.logo-badge {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-flex;
    margin-bottom: 25px;
}

.logo-badge-centered {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
    width: fit-content;
}

.logo-badge img,
.logo-badge-centered img {
    max-width: 180px;
    height: auto;
    display: block;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--white);
}

.brand-subtitle {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 300;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 30px 0;
    border-radius: 2px;
}

.contact-list {
    flex: 1;
}

.contact-item {
    margin-bottom: 28px;
}

.contact-item h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.secure-note {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.secure-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
}

.secure-badge img {
    height: 45px;
    max-width: 200px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    object-fit: contain;
}

.ssl-text {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.ssl-text svg {
    width: 16px;
    height: 16px;
}

.form-panel {
    flex: 1;
    padding: 50px;
    background: var(--white);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e53e3e;
}

.form-group label .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 12px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fafbfc;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.amount-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.amount-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.amount-input-wrapper {
    position: relative;
    max-width: 300px;
}

.amount-input-wrapper input {
    width: 100%;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 20px 60px 20px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fafbfc;
}

.amount-input-wrapper input:focus {
    border-color: var(--accent);
    background: var(--white);
}

.amount-input-wrapper .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
}

.installment-section {
    margin-top: 24px;
}

.installment-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.installment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.installment-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    background: #fafbfc;
}

.installment-option:hover {
    border-color: #cbd5e0;
}

.installment-option.active {
    border-color: var(--accent);
    background: var(--accent-light);
}

.installment-option .inst-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.installment-option.active .inst-name {
    color: var(--accent-dark);
}

.installment-option .inst-detail {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.installment-option .inst-detail .monthly {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.installment-option.active .inst-detail .monthly {
    color: var(--accent-dark);
}

.submit-section {
    margin-top: 35px;
}

.btn-submit {
    width: 100%;
    padding: 18px 30px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    min-height: 54px;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover {
    background: var(--accent-dark);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.security-badge svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        max-width: 600px;
    }

    .info-panel {
        flex: none;
        padding: 40px 30px;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .installment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .page-wrapper {
        padding: 0;
    }

    .container {
        border-radius: 0;
        min-height: 100vh;
    }

    .info-panel {
        padding: 24px 20px;
        text-align: center;
    }

    .logo-badge,
    .logo-badge-centered {
        margin: 0 auto 20px;
        padding: 15px;
    }

    .logo-badge img,
    .logo-badge-centered img {
        max-width: 140px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .divider {
        margin: 20px auto;
    }

    .contact-list {
        display: none;
    }

    .secure-note {
        justify-content: center;
        font-size: 11px;
        margin-top: 20px;
        gap: 12px;
    }

    .secure-badge {
        padding: 10px 16px;
    }

    .secure-badge img {
        height: 40px;
    }

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

    .ssl-text svg {
        width: 14px;
        height: 14px;
    }

    .form-panel {
        padding: 24px 16px;
    }

    .form-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .amount-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .amount-section h3 {
        font-size: 14px;
    }

    .amount-input-wrapper {
        max-width: 100%;
    }

    .amount-input-wrapper input {
        font-size: 24px;
        padding: 16px 50px 16px 16px;
    }

    .amount-input-wrapper .currency {
        font-size: 18px;
        right: 16px;
    }

    .installment-section {
        margin-top: 20px;
    }

    .installment-section h3 {
        font-size: 14px;
    }

    .installment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .installment-option {
        padding: 12px 8px;
        border-radius: 10px;
        border-width: 1.5px;
    }

    .installment-option .inst-name {
        font-size: 13px;
    }

    .installment-option .inst-detail {
        font-size: 11px;
    }

    .installment-option .inst-detail .monthly {
        font-size: 12px;
    }

    .card-brands-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .card-brands-section h3 {
        font-size: 14px;
    }

    .card-brands {
        justify-content: center;
        gap: 12px;
    }

    .card-brand-logo {
        height: 28px;
    }

    .submit-section {
        margin-top: 24px;
    }

    .btn-submit {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 12px;
        min-height: 54px;
    }

    .security-badge {
        font-size: 12px;
        padding: 12px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 92, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff5f5;
    color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon.success {
    background: #f0fff4;
    color: var(--success);
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 10px;
}

.modal-message {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    min-width: 120px;
}

.modal-btn:hover {
    background: var(--primary-light);
}