/* ===== FORM CONTROLS AND CONTENT TYPES ===== */

/* Content Type Section */
.section-title-compact {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    text-align: center;
}

.content-type-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.content-radio-card {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.content-radio-card:hover {
    border-color: #1e3a8a;
    background: #f0f4f8;
    transform: translateY(-1px);
}

.content-radio-card.active {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.content-radio-card input[type="radio"] {
    display: none;
}

.content-icon {
    font-size: 16px;
    line-height: 1;
}

.content-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.content-radio-card.active .content-text {
    color: white;
}

/* Recalculate Button */
#btnRecalculate {
    background-color: var(--serpost-blue);
    color: var(--serpost-white);
    border: 2px solid var(--serpost-blue-light);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

#btnRecalculate:hover {
    background-color: var(--serpost-blue-light);
    border-color: var(--serpost-blue);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

#btnRecalculate:active {
    background-color: var(--serpost-navy);
    border-color: var(--serpost-blue);
    box-shadow: 0 2px 6px var(--shadow-strong);
    transform: translateY(0);
}

/* Tooltips */
.tooltip {
    --bs-tooltip-bg: #1e3a8a;
    --bs-tooltip-color: white;
    --bs-tooltip-border-radius: 8px;
    --bs-tooltip-padding-x: 12px;
    --bs-tooltip-padding-y: 8px;
    --bs-tooltip-font-size: 13px;
    --bs-tooltip-max-width: 280px;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25) !important;
    font-weight: 500;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #1e3a8a !important;
    border-bottom-color: #1e3a8a !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #1e3a8a !important;
    border-top-color: transparent !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1e3a8a !important;
    border-bottom-color: transparent !important;
}

/* Enhanced Focus States */
.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Smooth Animations */
.content-radio-card, 
.radio-card, 
.btn-serpost, 
.btn-serpost-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-radio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(30, 58, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Enhanced Hover States */
.radio-card:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

/* Gradient Text for Headers */
.serpost-card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-type-container {
        gap: 12px;
        justify-content: space-around;
    }
    
    .content-radio-card {
        padding: 8px 16px;
        min-width: 130px;
        flex: 1;
        max-width: 160px;
    }
    
    .content-icon {
        font-size: 16px;
    }
    
    .content-text {
        font-size: 13px;
    }
    
    .section-title-compact {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .serpost-card {
        margin: 10px;
        border-radius: 16px;
    }
    
    .content-type-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
    }
    
    .content-radio-card {
        flex: 1;
        min-width: unset;
        max-width: unset;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #btnRecalculate {
        padding: 6px 12px;
        font-size: 12px;
    }
}