/* ================================================
   Apply Form Styles - Premium Redesign
   ================================================ */

/* Hero Section */
.apply-hero {
    background: #f8fafc;
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.apply-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(var(--thm-primary-rgb), 0.05);
    filter: blur(100px);
    border-radius: 50%;
}

.apply-hero-content {
    position: relative;
    z-index: 1;
}

.apply-form-container {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.apply-hero-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.apply-hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Glassmorphism Design System */
:root {
    --glass-bg: #fff;
    --glass-border: #f1f5f9;
    --glass-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
    --primary-blur: blur(8px);
}

.apply-content-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 32px !important;
    padding: 45px !important;
    transition: all 0.3s ease;
}

/* Custom Radio Buttons for Non-Selection Cards */
.custom-radio-btn {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
}

.custom-radio-btn:hover {
    border-color: var(--thm-primary);
    background: rgba(var(--thm-primary-rgb), 0.02);
}

/* Enhanced Inputs */
.input_area {
    margin-bottom: 20px !important;
    position: relative;
}

.input_area label {
    font-size: 0.95rem;
    font-weight: 600 !important;
    margin-bottom: 10px;
    color: #344767;
    transition: all 0.3s ease;
    display: block;
}

.input-text,
select.input-text,
textarea.input-text {
    width: 100% !important;
    padding: 14px 18px !important;
    height: auto !important;
    min-height: 54px;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    transition: all 0.25s ease !important;
    font-size: 1rem !important;
    color: #495057;
}

.input-text:focus {
    border-color: var(--thm-primary) !important;
    box-shadow: 0 0 15px rgba(var(--thm-primary-rgb), 0.1) !important;
    transform: translateY(-2px);
    background: #fff !important;
    outline: none;
}

/* Specific fix for Choices.js and native */
.choices__inner {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    min-height: 54px !important;
    padding: 10px 18px !important;
}

/* Buttons */
.apply-button-group {
    padding-top: 20px;
    display: flex;
    gap: 15px;
}

.apply-button-group .btn {
    border-radius: 14px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
}

.apply-button-group .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(var(--thm-primary-rgb), 0.2);
}

/* Processing Selection Cards */
.processing-selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px !important;
}

.selection-card-wrapper {
    flex: 1;
    min-width: 180px;
}

.selection-card {
    position: relative;
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    height: 100%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.selection-card:hover {
    border-color: rgba(var(--thm-primary-rgb), 0.3) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.selection-card.active {
    border-color: var(--thm-primary) !important;
    border-width: 2.5px !important;
    background: rgba(var(--thm-primary-rgb), 0.05) !important;
    box-shadow: 0 10px 25px rgba(var(--thm-primary-rgb), 0.1);
}

.selection-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--thm-primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 2;
}

.selection-card.active .selection-card-check {
    display: flex;
}

.selection-card-icon {
    width: 54px;
    height: 54px;
    background: rgba(var(--thm-primary-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--thm-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.selection-card.active .selection-card-icon {
    background: var(--thm-primary);
    color: #fff;
    transform: scale(1.1);
}

.selection-card-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1e293b;
    margin-bottom: 6px;
    display: block;
}

.selection-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
    display: block;
}

.selection-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--thm-primary);
    margin-top: auto;
    background: rgba(var(--thm-primary-rgb), 0.08);
    padding: 6px 16px;
    border-radius: 12px;
}

.selection-card-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .apply-hero {
        padding: 40px 0 80px;
    }

    .apply-hero-title {
        font-size: 1rem;
        margin-bottom: 20px !important;
        padding: 0 15px;
        color: #94a3b8;
    }

    .apply-hero-form-header h2 {
        font-size: 1.5rem;
        margin-bottom: 8px !important;
    }

    .apply-hero-form-header p {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .apply-form-container {
        margin-top: -40px;
    }

    .apply-content-card {
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }

    .apply-button-group {
        flex-direction: column;
    }

    .apply-button-group .btn {
        width: 100%;
    }

    .selection-card-wrapper {
        width: 100%;
    }

    .selection-card {
        flex-direction: row;
        text-align: left;
        padding: 12px 15px !important;
        gap: 12px;
        border-radius: 16px !important;
    }

    .processing-selection-row {
        margin-bottom: 10px !important;
        gap: 10px;
    }

    .selection-card-icon {
        margin-bottom: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .selection-card-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .selection-card-title {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .selection-card-desc {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .selection-card-price {
        margin-top: 0;
        margin-left: auto;
        min-width: fit-content;
        font-size: 1.1rem;
        padding: 4px 10px;
    }
}