/*
 * Safforix — Hire Plan Modal Styles
 * Shared across all hire-developer pages.
 * Usage: <link rel="stylesheet" href="assets/css/hire-modal.css">
 */

/* ─── Dialog sizing ─────────────────────────────────────── */
.hire-modal-dialog {
    max-width: 540px;
    width: 95%;
    margin: 1.5rem auto;
}

/* ─── Card shell ───────────────────────────────────────── */
.hire-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(7, 43, 95, 0.22);
    font-family: 'DM Sans', sans-serif;
}

/* ─── Header ───────────────────────────────────────────── */
.hire-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #072b5f 0%, #0b3d7a 100%);
    padding: 26px 28px 22px;
    position: relative;
}

.hire-modal-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(3, 161, 208, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hire-modal-icon {
    font-size: 22px;
    color: #5dd8f6;
}

.hire-modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.3;
    padding-right: 36px;
}

.hire-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.45;
}

.hire-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.hire-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ─── Info strip ───────────────────────────────────────── */
.hire-modal-info-strip {
    display: flex;
    gap: 0;
    background: #f0f5ff;
    border-bottom: 1px solid #e2eaf5;
}

.hire-modal-info-strip span {
    flex: 1;
    padding: 10px 20px;
    font-size: 13px;
    color: #5a6a82;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hire-modal-info-strip span:first-child {
    border-right: 1px solid #dce7f5;
}

.hire-modal-info-strip span i {
    color: #03a1d0;
    font-size: 14px;
}

.hire-modal-info-strip strong {
    color: #072b5f;
    font-weight: 700;
}

/* ─── Body ─────────────────────────────────────────────── */
.hire-modal-body {
    padding: 28px 28px 24px;
    background: #ffffff;
}

/* ─── Form fields ─────────────────────────────────────── */
.hire-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hire-modal-field {
    margin-bottom: 18px;
    position: relative;
}

.hire-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a4a62;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.hire-modal-label i {
    color: #03a1d0;
    margin-right: 5px;
    font-size: 12px;
}

.hire-modal-req {
    color: #e03e3e;
    font-size: 14px;
    margin-left: 2px;
}

.hire-modal-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: 'DM Sans', sans-serif;
    color: #2e3a4e;
    background: #f8faff;
    border: 1.5px solid #dce5f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    -webkit-appearance: none;
    appearance: none;
}

.hire-modal-input:focus {
    border-color: #03a1d0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(3, 161, 208, 0.12);
}

/* Validation states */
.hire-modal-input--error {
    border-color: #e03e3e !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(224, 62, 62, 0.1) !important;
}

.hire-modal-input--ok {
    border-color: #28a745 !important;
    background: #f8fff9 !important;
}

.hire-modal-field-error {
    display: block;
    font-size: 12.5px;
    color: #e03e3e;
    font-weight: 600;
    margin-top: 5px;
}

/* Select arrow */
select.hire-modal-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7b8d' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

/* ─── Status message ──────────────────────────────────── */
.hire-modal-status {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    animation: hireStatusFadeIn 0.35s ease forwards;
    transition: opacity 0.4s ease;
    line-height: 1.5;
}

@keyframes hireStatusFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hire-modal-status--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hire-modal-status--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ─── Submit button ───────────────────────────────────── */
.hire-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #03a1d0, #0567d0);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.hire-modal-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0567d0, #03a1d0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hire-modal-submit:hover::before {
    opacity: 1;
}

.hire-modal-submit>* {
    position: relative;
    z-index: 1;
}

.hire-modal-submit:hover {
    box-shadow: 0 8px 28px rgba(3, 161, 208, 0.4);
    transform: translateY(-2px);
}

.hire-modal-submit:active {
    transform: translateY(0);
}

.hire-modal-submit:disabled,
.hire-modal-submit--loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 576px) {
    .hire-modal-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hire-modal-header {
        padding: 20px 18px 18px;
    }

    .hire-modal-body {
        padding: 20px 18px 18px;
    }

    .hire-modal-title {
        font-size: 15px;
    }

    .hire-modal-info-strip span {
        font-size: 12px;
        padding: 9px 14px;
    }
}