/* ------------------------------
   job alerts
   ------------------------------ */

/* Job Alerts Signup Form Styles */
.job-alerts-signup-container {
    background: #fff;
    border-radius: 40px;
    padding: 50px 40px;
    margin: 0;
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.1);
}

.job-alerts-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.job-alerts-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.job-alerts-header p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.job-alerts-form {
    max-width: 100%;
    margin-bottom: 0;
}

.job-alerts-fields {
    display: flex;
    flex-direction: column;
}

.job-alert-field {

}

.job-alert-field label,.repeater-field label {
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 6px;
}

.job-alert-field input[type="email"],
.job-alert-field input[type="text"],
.job-alert-field select {
    padding: 14px 20px;
    border-radius: 50px;
    border-color: transparent;
    background: #EEF4FC;
    font-size: 16px;
    transition: border-color 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.job-alert-field input:focus,
.job-alert-field select:focus {
    border-color: var(--e-global-color-accent, #3498db);

}

/* Repeater styles for category/location pairs */
.alert-repeater-container {
    margin-top: 1rem;
}

.alert-repeater-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}
.repeater-field {
    display: flex;
    flex-direction: column;
}


.repeater-field select,
.repeater-field input {
    padding: 14px 20px;
    border-radius: 50px;
    background: #EEF4FC;
    border-color: transparent;
    font-size: 16px;
    transition: border-color 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.repeater-field select:focus,
.repeater-field input:focus {
    border-color: var(--e-global-color-accent, #3498db);
   
}

.repeater-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-alerts-form .add-repeater-btn,
.job-alerts-form .remove-repeater-btn {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 300; 
    transition: all 0.2s ease;
    padding: 0;
}

.job-alerts-form .add-repeater-btn {
    border-radius: 50px;
    background: #285A9D;
    color: white;
}
.add-repeater-btn:hover {
    background: #3367D6;
    transform: scale(1.1);
}

.remove-repeater-btn {
    background: #EA4335;
    color: white;
    
}

.remove-repeater-btn:hover {
    background: #D33B2C;
    transform: scale(1.1);
}

/* Selected tags display */
.selected-alert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f0ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-tag.home-health {
    background: #4285F4;
}
.alert-tag .remove-tag {
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    border-radius: 50px;
    background: #285A9D;
}

.alert-tag .remove-tag:hover {
   background: #000;
}
.alert-tag span {
    order: 1;
    color: #000;
}
.field-note {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}

button.job-alert-btn {
    background: var(--e-global-color-accent);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
    margin-top: 1rem;
}

button.job-alert-btn:hover {
    background: #C08A00;
    color: #000;
}

button.job-alert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.job-alert-btn .plus-icon {
    background: rgba(0, 0, 0, 0.1); 
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.job-alert-btn.loading .plus-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.job-alerts-disclaimer a {
    color: #333;
    text-decoration: underline;
}

.job-alerts-disclaimer {
    margin-top: 1.5rem;
}

.job-alerts-disclaimer p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 20px;
}

.job-alerts-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.job-alerts-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.job-alerts-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hide the old category dropdown */
.category-dropdown-container {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-alerts-signup-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .alert-repeater-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        border: 1px solid #ccc;
        border-radius: 20px;
        padding: 20px;
    }
    
    .job-alert-btn {
        width: 100%;
        padding: 18px 32px;
    }
}

@media (max-width: 480px) {
    .job-alerts-signup-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .job-alerts-header h3 {
        font-size: 1.25rem;
    }
    
    .repeater-field input,
    .repeater-field select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
