/* Page-specific styles for trading-accounts.html */

/* ===== Hero Section ===== */
.tmgm-header-wrapper {
    height: 340px !important;
}

@media only screen and (max-width: 768px) {
    .tmgm-header-wrapper {
        height: 280px !important;
    }
}

.tmgm-header-page-content {
    display: flex !important;
    align-items: flex-end !important;
    padding-bottom: 24px !important;
}

/* ===== Main Container ===== */
#trading-accounts-div-container {
    padding-bottom: 175px !important;
    background-color: #F9F9F9;
}

@media only screen and (min-width: 1023px) {
    #trading-accounts-div-container {
        padding-bottom: 100px !important;
    }
}

/* ===== Account Card Grid Layout ===== */
#trading-accounts-div-container .tm-section-content.on-right .tm-card-wrapper.tm-trading-account-card,
#trading-accounts-div-container .tm-card-wrapper.tm-trading-account-card {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    #trading-accounts-div-container .tm-card-wrapper.tm-trading-account-card { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}
@media (max-width: 768px) {
    #trading-accounts-div-container .tm-card-wrapper.tm-trading-account-card { 
        grid-template-columns: 1fr !important; 
    }
}

/* ===== Card Styles ===== */
.icon-card {
    position: relative !important;
    background: #f0f5ff !important; /* default: light blue */
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    height: auto !important;
}

/* Standard account = white background */
.icon-card.classic {
    background: #fff !important;
}

.icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

/* Ribbon */
.icon-card .ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #26B1F2, #1C4389);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 20px;
    z-index: 10;
    letter-spacing: 0.5px;
    border-radius: 0 0 8px 0;
}

.icon-card.classic .ribbon {
    background: linear-gradient(135deg, #888, #555);
}

/* Card Title Area */
.tm-card-title {
    display: block !important;
    visibility: visible !important;
    text-align: center;
    padding: 30px 16px 14px !important;
    box-shadow: none !important;
    border: none !important;
}

.icon-card.edge .tm-card-title,
.icon-card:not(.classic) .tm-card-title {
    background: transparent !important;
}

.icon-card.classic .tm-card-title {
    background: transparent !important;
}

.tm-card-title > span:first-child {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 2px;
}

.tm-card-title h4 {
    font-size: 42px !important;
    color: #1B79DE !important;
    margin: 0 0 4px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

.icon-card.classic .tm-card-title h4,
.tm-card-title h4 span.bold {
    color: #222 !important;
}

.tm-card-title h4 span {
    font-size: 18px !important;
}

.tm-card-title > span:last-child {
    display: block;
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

/* Feature Rows - LEFT / RIGHT layout */
.feat-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 22px !important;
    border-bottom: 1px solid #e8ecf2;
    font-size: 13px !important;
}

.feat-row:nth-of-type(even) {
    background-color: rgba(255,255,255,0.4);
}

.feat-row:last-of-type {
    border-bottom: none;
}

.feat-row .nobreak {
    color: #555 !important;
    font-size: 13px !important;
}

.feat-row .bold.nobreak,
.feat-row .tick {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.feat-row .tick {
    display: inline-flex !important;
    align-items: center !important;
}

.feat-row .tick img {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain !important;
    vertical-align: middle;
}

/* Button Wrapper */
.tm-btn-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 16px 20px 22px !important;
    margin-top: auto !important;
    background: #fff;
}

.tm-btn-wrapper .button {
    width: 100% !important;
    padding: 11px 18px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    letter-spacing: 0.3px;
}

/* Quiz buttons override - NOT full width */
.qtn-sectn .tm-btn-wrapper .button,
.quiz-result .tm-btn-wrapper .button {
    width: auto !important;
    min-width: 180px !important;
    max-width: 260px !important;
}

.tm-btn-wrapper .primary-button {
    background: linear-gradient(270deg, #22D1EE, #3D5AF1) !important;
    color: #fff !important;
}

.tm-btn-wrapper .primary-button:hover {
    opacity: 0.88;
}

.tm-btn-wrapper .white-button {
    background: #fff !important;
    color: #1B79DE !important;
    border: 1px solid #d0e3f7 !important;
}

.tm-btn-wrapper .white-button:hover {
    background: #f5faff !important;
}

/* Section Title */
#main .fs-1.bold.primary-text {
    text-align: center !important;
    font-size: 26px !important;
    color: #222 !important;
    margin-bottom: 6px !important;
}

#main .center-md {
    text-align: center !important;
    font-size: 14px !important;
    color: #777 !important;
}

@media (max-width: 768px) {
    #main .fs-1.bold.primary-text {
        font-size: 22px !important;
        text-align: center !important;
    }
    #main .center-md { text-align: center !important; }
    .tm-card-title { padding: 22px 12px 10px !important; }
    .tm-card-title h4 { font-size: 32px !important; }
    .tm-card-title h4 span { font-size: 15px !important; }
    .feat-row { padding: 7px 14px !important; font-size: 12px !important; }
    .tm-btn-wrapper { padding: 14px 14px 20px !important; }
}

/* ===== Quiz Section ===== */
.tm-quiz {
    max-width: 640px;
    margin: 20px auto 0;
    padding: 24px 0;
}

/* Hide all questions except first (use non-important for jQuery compatibility) */
.tm-quiz .qtn-sectn {
    display: none;
}
.tm-quiz .qtn-sectn:first-of-type {
    display: block;
}

/* Question title */
.qtn-sectn h4.fs-5 {
    text-align: center !important;
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 28px !important;
}

/* Radio options - horizontal row */
.qtn-sectn .answers-options {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 36px !important;
    flex-wrap: wrap;
    margin-bottom: 28px !important;
}

.answers-options > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.answers-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1B79DE;
    cursor: pointer;
}

.answers-options label {
    font-size: 15px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

/* Next button - centered moderate width */
.qtn-sectn .tm-btn-wrapper,
.quiz-result .tm-btn-wrapper {
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
}

/* Quiz buttons override - NOT full width (defined above) */
.tm-quiz .tm-btn-wrapper {
    text-align: center !important;
    flex-direction: row !important;
    justify-content: center !important;
}

.tm-quiz .tm-btn-wrapper .button {
    display: inline-block !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: 260px !important;
}

/* Quiz result - hidden by default */
.quiz-result {
    display: none;
    text-align: center;
    padding: 16px 0 8px;
}

.quiz-result > span {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.quiz-result .result-value {
    color: #1B79DE !important;
    font-size: 17px;
}

.quiz-result .tick img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    vertical-align: middle;
    margin-right: 4px;
}

@media (max-width: 576px) {
    .tm-quiz { padding: 24px 16px; }
    .qtn-sectn h4.fs-5 { font-size: 16px !important; }
    .qtn-sectn .answers-options { gap: 20px !important; }
    .answers-options label { font-size: 13px; }
    .qtn-sectn .tm-btn-wrapper .button { min-width: 160px; padding: 10px 36px !important; }
}
