/* Pro Mode Toggle - Segment Controller Style */
.pro-mode-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    /* Gap 1rem between components */
    width: 100%;
}

.pro-mode-toggle {
    display: inline-flex;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toggle-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Reasonable space between text and icon via gap */
    gap: 0.5rem;
    padding: 4px 20px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    min-width: 80px;
}

/* Inactive State: Grey Icon & Text */
.toggle-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    /* Grey */
    transition: color 0.3s ease;
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    /* Grey */
    transition: color 0.3s ease;
    user-select: none;
}

.toggle-option:hover .toggle-text,
.toggle-option:hover .toggle-icon {
    color: var(--text-heading);
}

/* Hide default radio input */
.toggle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Active State: Black Icon & Text */
.toggle-option:has(input:checked) .toggle-text {
    color: #000000 !important;
    /* Black text */
    font-weight: 700;
}

.toggle-option:has(input:checked) .toggle-icon {
    color: #000000 !important;
    /* Black icon */
}

/* Active Label Background */
.toggle-option:has(input:checked) {
    background-color: var(--accent-orange);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

/* Pro Tag Styling - Bookmark Refresh */
.pro-tag {
    position: absolute;
    top: -16px; /* Sits exactly attached without overlapping */
    left: 50%;
    transform: translateX(-50%);
    width: 70px; /* Slightly less than button width */
    height: 16px;
    background: var(--accent-orange);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 0 0; /* Bookmark top corners */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: -1; /* Sit behind the main toggle border for a "coming out" look */
    box-shadow: 0 -2px 8px rgba(249, 115, 22, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Removed the overlapping notch that brought it over the button */
.pro-tag::after {
    display: none;
}

.toggle-option:has(input:checked) .pro-tag {
    top: -19px; /* Slight lift when active */
    height: 19px;
    filter: brightness(1.1);
}

/* Responsive adjustment for the tag */
@media (max-width: 768px) {
    .pro-tag {
        width: 60px;
        font-size: 0.55rem;
    }
}

/* Question Form Container */
/* Question Form Container */
/* Question Form Container */
.question-form-container {
    margin-top: 24px;
    padding: 0;
    /* Removed padding to merge with parent */
    background: transparent;
    /* Removed background */
    border: none;
    /* Removed border */
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    animation: fadeIn 0.4s ease-out;
}

.question-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.question-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.question-number {
    color: var(--accent-orange);
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}


.question-form .question-input {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Light outline */
    border-radius: 12px;
    background: rgb(0 0 0 / 12%);
    /* Different background color */
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    width: 100%;
    margin-bottom: 25px;
}

.question-form .question-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
    /* Slightly brighter on focus */
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
    transform: translateY(-1px);
}

.question-form .question-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proceed-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--accent-orange);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-end;
}

.proceed-btn:hover:not(:disabled) {
    filter: brightness(115%);
    transform: scale(1.02);
    background: var(--accent-orange);
}

.proceed-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.proceed-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
    box-shadow: none;
    transform: none;
}