/* Apply login page background to the page */
body {
    background: linear-gradient(rgba(5, 15, 25, 0.5), rgba(10, 20, 35, 0.6)), 
                url('https://mas-client-portal.com/wp-content/themes/twentytwentyfour-child/assets/images/backgrounds/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

.gf-trading-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Animations */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Header Card */
.header-card {
    background: rgba(15, 25, 40, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(111, 238, 252, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(111, 238, 252, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.header-card h2 {
    color: #ffffff;
    margin: 0 0 12px 0;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family:'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.header-card p {
    color: #a0aec0;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family:'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tooltip */
.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(111, 238, 252, 0.2);
    border: 1px solid rgba(111, 238, 252, 0.3);
    border-radius: 50%;
    cursor: help;
    position: relative;
    font-size: 12px;
    color: #6eedfc;
    font-weight: 600;
    font-family:'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background: rgba(20, 35, 55, 0.98);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    text-align: center;
    border-radius: 8px;
    padding: 12px 15px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(111, 238, 252, 0.3);
    pointer-events: none;
}

/* Trading Options */
.gf-trading-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gf-trading-option {
    cursor: pointer;
    display: block;
}

.gf-trading-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-box {
    background: linear-gradient(145deg, rgba(15, 25, 40, 0.95), rgba(20, 35, 55, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.markets-card {
    border: 2px solid rgba(110, 237, 252, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(110, 237, 252, 0.15);
}

.digital-card {
    border: 2px solid rgba(247, 135, 1, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 135, 1, 0.15);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.markets-card .gradient-overlay {
    background: linear-gradient(135deg, rgba(110, 237, 252, 0.08) 0%, rgba(110, 237, 252, 0.03) 50%, transparent 100%);
}

.digital-card .gradient-overlay {
    background: linear-gradient(135deg, rgba(247, 135, 1, 0.08) 0%, rgba(247, 135, 1, 0.03) 50%, transparent 100%);
}

.top-border-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.cyan {
    background: linear-gradient(90deg, #6eedfc, #4dd4e6, #6eedfc);
}

.orange {
    background: linear-gradient(90deg, #f78701, #ff9e20, #f78701);
}

.option-header {
    padding: 35px 25px 25px 25px;
    text-align: center;
    border-bottom: 1px solid;
    position: relative;
}

.cyan-header {
    background: linear-gradient(135deg, rgba(110, 237, 252, 0.12) 0%, rgba(110, 237, 252, 0.05) 100%);
    border-bottom-color: rgba(110, 237, 252, 0.2);
}

.orange-header {
    background: linear-gradient(135deg, rgba(247, 135, 1, 0.12) 0%, rgba(247, 135, 1, 0.05) 100%);
    border-bottom-color: rgba(247, 135, 1, 0.2);
}

.option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(110, 237, 252, 0.35),
                0 0 40px rgba(110, 237, 252, 0.15),
                inset 0 2px 10px rgba(110, 237, 252, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    position: relative;
}

.cyan-icon {
    background: linear-gradient(145deg, rgba(110, 237, 252, 0.2), rgba(110, 237, 252, 0.1));
    border: 2px solid rgba(110, 237, 252, 0.4);
}

.orange-icon {
    background: linear-gradient(145deg, rgba(247, 135, 1, 0.2), rgba(247, 135, 1, 0.1));
    border: 2px solid rgba(247, 135, 1, 0.4);
    box-shadow: 0 8px 25px rgba(247, 135, 1, 0.35),
                0 0 40px rgba(247, 135, 1, 0.15),
                inset 0 2px 10px rgba(247, 135, 1, 0.1);
}

.pulsing-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.cyan-ring {
    border-color: rgba(110, 237, 252, 0.3);
}

.orange-ring {
    border-color: rgba(247, 135, 1, 0.3);
}

.icon-emoji {
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.option-content {
    padding: 25px;
    position: relative;
    min-height: 140px;
}

.option-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.markets-card h3 {
    color: #6eedfc;
    text-shadow: 0 0 20px rgba(110, 237, 252, 0.3);
     font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.digital-card h3 {
    color: #f78701;
    text-shadow: 0 0 20px rgba(247, 135, 1, 0.3);
     font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.option-content p {
    margin: 0 0 15px 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.custom-checkbox {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyan-checkbox {
    border: 2px solid rgba(110, 237, 252, 0.4);
    background: rgba(20, 35, 55, 0.8);
}

.orange-checkbox {
    border: 2px solid rgba(247, 135, 1, 0.4);
    background: rgba(25, 30, 45, 0.8);
}

.custom-checkbox svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Market Selection Panel */
#market-selection-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    margin-bottom: 0;
}

.market-panel-content {
    background: rgba(15, 25, 40, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(111, 238, 252, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(111, 238, 252, 0.1);
    padding: 30px;
}

.market-panel-content h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.checkmark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6eedfc, #4dd4e6);
    border-radius: 6px;
    font-size: 14px;
    color: #0a1520;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(110, 237, 252, 0.3);
}

.market-panel-content p {
    margin: 0 0 25px 40px;
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.5;
}

.market-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 40px;
}

.market-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    background: rgba(20, 35, 55, 0.5);
    border: 1px solid rgba(111, 238, 252, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.market-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.market-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(111, 238, 252, 0.3);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: rgba(20, 35, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-checkbox svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.market-option span {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

/* Submit Button */
.submit-container {
    text-align: center;
    margin-top: 30px;
}

#submit-btn {
    background: rgba(74, 85, 104, 0.6);
    color: #a0aec0;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 6px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: none;
    min-width: 220px;
    opacity: 0.6;
}

/* Hover Effects */
.gf-trading-option:hover .option-box {
    transform: translateY(-6px);
}

.gf-trading-option:hover .markets-card {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(110, 237, 252, 0.25);
    border-color: rgba(110, 237, 252, 0.5);
}

.gf-trading-option:hover .digital-card {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(247, 135, 1, 0.25);
    border-color: rgba(247, 135, 1, 0.5);
}

.gf-trading-option:hover .option-icon {
    transform: scale(1.15) rotate(5deg);
}

.market-option:hover {
    background: rgba(30, 50, 75, 0.6);
    border-color: rgba(111, 238, 252, 0.3);
    transform: translateX(4px);
}

/* Checked state for MAS Markets */
.gf-trading-option input#masmarket-option:checked + span + .markets-card {
    border-color: #6eedfc;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.8), 
                0 0 60px rgba(110, 237, 252, 0.4),
                inset 0 1px 0 rgba(110, 237, 252, 0.1);
    background: linear-gradient(145deg, rgba(20, 35, 55, 0.95), rgba(30, 50, 75, 0.95));
}

.gf-trading-option input#masmarket-option:checked + span + .markets-card .gradient-overlay {
    opacity: 0.3;
}

.gf-trading-option input#masmarket-option:checked + span + .markets-card .custom-checkbox {
    background: linear-gradient(135deg, #6eedfc, #4dd4e6);
    border-color: #6eedfc;
    box-shadow: 0 4px 15px rgba(110, 237, 252, 0.5), 0 0 20px rgba(110, 237, 252, 0.3);
}

.gf-trading-option input#masmarket-option:checked + span + .markets-card .custom-checkbox svg {
    opacity: 1;
}

/* Checked state for MAS Digital */
.gf-trading-option input#masdigital-option:checked + span + .digital-card {
    border-color: #f78701;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.8), 
                0 0 60px rgba(247, 135, 1, 0.4),
                inset 0 1px 0 rgba(247, 135, 1, 0.1);
    background: linear-gradient(145deg, rgba(25, 30, 45, 0.95), rgba(35, 40, 55, 0.95));
}

.gf-trading-option input#masdigital-option:checked + span + .digital-card .gradient-overlay {
    opacity: 0.3;
}

.gf-trading-option input#masdigital-option:checked + span + .digital-card .custom-checkbox {
    background: linear-gradient(135deg, #f78701, #ff9e20);
    border-color: #f78701;
    box-shadow: 0 4px 15px rgba(247, 135, 1, 0.5), 0 0 20px rgba(247, 135, 1, 0.3);
}

.gf-trading-option input#masdigital-option:checked + span + .digital-card .custom-checkbox svg {
    opacity: 1;
}

/* Checked state for market options */
.market-option input:checked + .market-checkbox {
    background: linear-gradient(135deg, #6eedfc, #4dd4e6);
    border-color: #6eedfc;
    box-shadow: 0 2px 10px rgba(110, 237, 252, 0.4);
}

.market-option input:checked + .market-checkbox svg {
    opacity: 1;
}

/* Button states */
#submit-btn.btn-markets {
    background: #6eedfc !important;
    color: #0a1520 !important;
    box-shadow: 0 4px 15px rgba(110, 237, 252, 0.3) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

#submit-btn.btn-markets:hover {
    background: #5dd4e6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 237, 252, 0.4) !important;
}

#submit-btn.btn-digital {
    background: #f78701 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(247, 135, 1, 0.3) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

#submit-btn.btn-digital:hover {
    background: #e67801 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 135, 1, 0.4) !important;
}

#submit-btn.btn-both {
    background: #6eedfc !important;
    color: #0a1520 !important;
    box-shadow: 0 4px 15px rgba(110, 237, 252, 0.3) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

#submit-btn.btn-both:hover {
    background: #5dd4e6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 237, 252, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gf-trading-options {
        grid-template-columns: 1fr;
    }
    
    .market-options {
        margin-left: 0;
    }
    
    .market-panel-content p {
        margin-left: 0;
    }
}

