/* Styles for Novet Careers Plugin */

/* Base overrides for CPT details */
.novet-careers-detail-page a.decoration-none {
    text-decoration: none !important;
}

/* Modal Popup Core Styles */
.nc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none; /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.nc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* slate-900/60 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.nc-modal-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    background-color: #ffffff;
    border-radius: 2.5rem; /* rounded-[2.5rem] */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f1f5f9;
    z-index: 10;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Modal States */
.nc-modal-overlay.is-active {
    display: flex;
}

.nc-modal-overlay.is-active .nc-modal-backdrop {
    opacity: 1;
}

.nc-modal-overlay.is-active .nc-modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Modal Header */
.nc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
}

.nc-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    font-style: italic;
}

.nc-modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nc-modal-close-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.nc-modal-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Body */
.nc-modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
    background-color: #ffffff;
}

/* Fallback & Custom Form Styles inside Modal */
.nc-no-form-alert {
    padding: 1.5rem;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 1.5rem;
    text-align: center;
}

/* Styling common WP Form plugins inside modal to make them fit the premium design */
.nc-modal-body form {
    margin: 0;
}

.nc-modal-body form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b; /* slate-500 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nc-modal-body form input[type="text"],
.nc-modal-body form input[type="email"],
.nc-modal-body form input[type="tel"],
.nc-modal-body form input[type="url"],
.nc-modal-body form input[type="file"],
.nc-modal-body form select,
.nc-modal-body form textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: 1.25rem;
}

.nc-modal-body form input:focus,
.nc-modal-body form select:focus,
.nc-modal-body form textarea:focus {
    outline: none;
    border-color: #2563eb; /* primary blue */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.nc-modal-body form textarea {
    resize: none;
    min-height: 100px;
}

/* Form Buttons */
.nc-modal-body form input[type="submit"],
.nc-modal-body form button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 2rem;
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    border-radius: 1.25rem;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem;
}

.nc-modal-body form input[type="submit"]:hover,
.nc-modal-body form button[type="submit"]:hover {
    background-color: #2563eb; /* primary blue */
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

/* Contact Form 7 specific cleanup */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0;
}
.wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}
div.wpcf7 .ajax-loader {
    position: absolute;
}
