/* ================================================================
   careers.css  —  CostMasters Careers Page
   All rules extracted from the approved source HTML <style> block.
   Link this file AFTER your main stylesheet.
   ================================================================ */

/* ---------- HERO ---------- */
.career-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d26 50%, #14143d 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.career-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 25%, rgba(79, 159, 255, 0.12), transparent 40%);
    z-index: -1;
}

.career-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ffffff 30%, #4F9FFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------- MAIN SECTION ---------- */
.career-section {
    background-color: #ffffff;
    padding: 34px 0; /* matches source HTML exactly */
    color: #333;
}

/* ---------- LEFT COL: intro text ---------- */
.career-intro h3 {
    color: #0d1b3e;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 24px;
}

.career-intro p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ---------- DARK CONTACT CARD ---------- */
.hr-contact-card {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d26 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hr-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 15px;
}

.hr-contact-item:last-child {
    margin-bottom: 0;
}

.hr-contact-icon {
    color: #4F9FFF;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.hr-contact-text h5 {
    font-size: 11px;
    color: #94a3b8;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hr-contact-text p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
}

.hr-contact-text a {
    color: #ffffff;
    text-decoration: none;
}

.hr-contact-text a:hover {
    color: #4F9FFF;
}

/* ---------- FORM CARD ---------- */
.career-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 19px; /* matches source HTML exactly */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---------- FORM LABELS ---------- */
.career-section .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    display: block;
}

/* Required asterisk */
.c_red {
    color: #ef4444;
}

/* ---------- INPUTS ---------- */
.saas-input,
.saas-select,
.saas-file {
    width: 100%;
    padding: 4px 14px; /* matches source HTML exactly */
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.saas-input:focus,
.saas-select:focus,
.saas-file:focus {
    background-color: #ffffff;
    border-color: #60adff;
    box-shadow: 0 0 0 3px rgba(96, 173, 255, 0.15);
}

.saas-file {
    padding: 7px 14px;
}

textarea.saas-input {
    resize: vertical;
}

/* Error highlight */
.saas-input.error-input,
.saas-select.error-input,
.saas-file.error-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

span.error {
    font-size: 11px;
    color: #ef4444;
    display: block;
    margin-top: 3px;
}

/* ---------- PHONE INPUT (intl-tel-input) ---------- */
.iti {
    width: 100%;
    display: block;
}

.iti input[type="tel"],
.iti input {
    width: 100% !important;
    padding: 4px 14px !important;
    padding-left: 90px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    height: auto !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.iti input[type="tel"]:focus {
    background-color: #ffffff !important;
    border-color: #60adff !important;
    box-shadow: 0 0 0 3px rgba(96, 173, 255, 0.15) !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 6px 0 0 6px !important;
}

.iti__selected-dial-code {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

/* OTP group visible */
#c_verify_otp.error-input .compact-otp-box {
    border-color: #ef4444 !important;
}

/* ---------- OTP BOX ---------- */
.compact-otp-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.otp-box {
    width: 38px !important;
    height: 38px !important;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    padding: 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.otp-box:focus {
    border-color: #60adff;
    box-shadow: 0 0 0 3px rgba(96, 173, 255, 0.15);
}

/* ---------- OTP ACTION BUTTONS ---------- */
.btn-otp {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-verify {
    background: #020855;
    color: #ffffff;
}

.btn-verify:hover {
    background: #059669;
}

.btn-resend {
    background: #e2e8f0;
    color: #475569;
}

.btn-resend:hover {
    background: #cbd5e1;
}

.btn-cancel {
    background: transparent;
    color: #ef4444;
    text-decoration: underline;
    padding: 6px 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

#c_send_otp_btn {
    white-space: nowrap;
}

/* Tick icons for verified state */
.verified_tick {
    color: #22c55e !important;
    font-size: 17px;
    margin-left: 5px;
    vertical-align: middle;
}

#c_otp_timer {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* ---------- SUBMIT BUTTON ---------- */
/* Matches .gradient-btn used as submit in source HTML */
.career-form-card .gradient-btn,
.career-form-card button.gradient-btn,
input.textsubmit.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #0d47a1 0%, #0b3d91 60%, #4F9FFF 100%);
    font-family: inherit;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.career-form-card .gradient-btn:hover,
input.textsubmit.btn:hover {
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.career-form-card .gradient-btn:active,
input.textsubmit.btn:active {
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3);
    transform: translateY(0);
}

input.textsubmit.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- LOADER SPINNER ---------- */
#c_loader.loader {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

#c_loader.loader::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 50%;
    border: 4px solid #0d47a1;
    border-color: #0d47a1 transparent #4F9FFF transparent;
    animation: cm-spinner 0.9s linear infinite;
}

@keyframes cm-spinner {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- RESPONSE MESSAGE ---------- */
#message {
    font-size: 14px;
    margin-top: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .career-section .col-lg-5,
    .career-section .col-lg-7 {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .career-hero {
        padding: 28px 0;
    }

    .career-hero-title {
        font-size: 28px;
    }

    .career-section {
        padding: 30px 0;
    }

    .career-form-card {
        padding: 14px;
    }

    .hr-contact-card {
        padding: 20px 16px;
    }

    .career-intro h3 {
        font-size: 20px;
    }

    /* Prevent iOS zoom — inputs must be >= 16px on mobile */
    .saas-input,
    .saas-select,
    .saas-file,
    .iti input {
        font-size: 16px !important;
    }

    .career-form-card .gradient-btn,
    input.textsubmit.btn {
        width: 100%;
        justify-content: center;
    }

    .compact-otp-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .otp-box {
        width: 34px !important;
        height: 34px !important;
    }
}

@media (max-width: 575px) {
    .career-section .col-md-6 {
        width: 100%;
    }
}