/* ===== Global Styles ===== */
body, html, input, select, textarea, button {
    font-family: 'Aptos', Arial, sans-serif;
}
body {
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
h3, h4 {
    text-align: center;
    color: #555;
    font-weight: normal;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* ===== Main Card Containers ===== */
.register-box,
.login-box,
.forgot-container {
    max-width: 400px;
    width: 100%;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

/* Unified card width for business profile and job opportunities */
.vacancy-section,
.profile-section-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2em auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 24px;
    box-sizing: border-box;
}

/* ===== Form Styling ===== */
form {
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
    display: block;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea.form-control {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    width: 100%;
    background: #f9f9fc;
    box-sizing: border-box;
    color: #222;
    transition: background 0.2s, color 0.2s;
}
input[type="text"]:not([readonly]),
input[type="email"]:not([readonly]),
input[type="number"]:not([readonly]),
select:enabled,
textarea.form-control:not([readonly]) {
    background: #fff;
    color: #000;
}
input[type="submit"], button, .google-btn, .forgot-btn, .register-btn, .back-btn {
    padding: 12px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    transition: background-color 0.3s ease;
    width: 48%;
    margin-bottom: 0;
    box-sizing: border-box;
    text-align: center;
    display: block;
}
input[type="submit"]:hover, button:hover, .google-btn:hover, .forgot-btn:hover, .register-btn:hover, .back-btn:hover {
    background-color: #0056b3;
}
.google-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    width: 48%;
}
.google-btn img {
    height: 22px;
    margin-right: 10px;
}
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
}
.site-credit-fixed {
    text-align: center;
    margin: 2em auto 0 auto;
    color: #888;
    font-size: 0.95em;
}
.seo-hidden {
    display: none !important;
}

/* Ensure all input boxes in job opportunities section are the same width */
.edit-row > div > .form-control {
    width: 100%;
    box-sizing: border-box;
}

/* Make all input boxes, including date, the same height */
.edit-row > div > .form-control,
.edit-row > div > input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    height: 48px;
    font-size: 16px;
    border-radius: 7px;
    border: 1px solid #e0e0e0;
    background: #f9f9fc;
    color: #222;
    transition: background 0.2s, color 0.2s;
}

/* ===== Responsive Styles ===== */
@media (min-width: 901px) {
    .business-section,
    .jobs-section,
    .vacancy-section,
    .profile-section-card {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto 2em auto;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        padding: 2em 2em 2em 2em;
        border: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #222;
        box-sizing: border-box;
    }
    .edit-row {
        display: flex;
        gap: 2em;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .edit-row > div {
        flex: 1 1 0;
        min-width: 140px;
    }
    .button-group {
        display: flex;
        gap: 14px;
        margin-top: 18px;
        justify-content: center;
        width: 100%;
    }
    .edit-save-btn, .logout-btn, .add-btn, .delete-btn {
        min-width: 120px;
        padding: 12px 0;
        font-size: 1em;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        box-sizing: border-box;
        text-align: center;
        display: block;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
        background: #0056b3;
        color: #fff;
    }
    .add-btn {
        background: #0056b3 !important;
    }
    .delete-btn {
        background: #dc3545 !important;
    }
    .vacancy-slider {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 2em;
        scrollbar-width: thin;
        scrollbar-color: #007bff #e0e0e0;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    .vacancy-card {
        display: inline-block;
        vertical-align: top;
        width: 500px;
        margin-right: 18px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        border: 1px solid #e0e0e0;
        padding: 1.5em 1.2em;
        font-size: 1.05em;
        text-align: left;
        color: #222;
        word-break: break-word;
    }
    .vacancy-card:last-child {
        margin-right: 0;
    }
    .vacancy-card strong {
        display: inline-block;
        min-width: 120px;
        font-weight: 600;
        color: #222;
        margin-right: 0.5em;
        vertical-align: top;
    }
    .vacancy-card div[style*="margin-bottom:8px;"] {
        margin-bottom: 12px !important;
        line-height: 1.5;
        word-break: break-word;
    }
    .vacancy-card a, .vacancy-card span {
        display: inline-block;
        word-break: break-all;
        vertical-align: top;
    }
}

/* Mobile: Make vacancy-slider a horizontal slider */
@media (max-width: 900px) {
    .vacancy-slider {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 16px !important;
        padding-bottom: 10px !important;
        margin-bottom: 2em !important;
        scrollbar-width: thin !important;
        scrollbar-color: #007bff #e0e0e0 !important;
    }
    .vacancy-card {
        display: inline-block !important;
        vertical-align: top !important;
        width: 85vw !important;
        min-width: 260px !important;
        max-width: 98vw !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
        border: 1px solid #e0e0e0 !important;
        padding: 1.2em 1em !important;
        font-size: 1em !important;
        text-align: left !important;
        color: #222 !important;
        word-break: break-word !important;
    }
    .vacancy-section,
    .profile-section-card {
        max-width: 98vw !important;
        padding: 1em !important;
    }
}

/* Vacancy Modal Styles */
.vacancy-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(30,30,30,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.vacancy-modal-content {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2.5em 2em 2em 2em;
    min-width: 340px;
    max-width: 540px;
    width: 90vw;
    color: #222;
    position: relative;
    text-align: left;
    animation: fadeInModal 0.2s;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.98);}
    to { opacity: 1; transform: scale(1);}
}
.vacancy-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: transparent;
    border: none;
    font-size: 2em;
    color: #007bff;
    cursor: pointer;
    z-index: 100;
    transition: color 0.2s;
}
.vacancy-modal-close:hover {
    color: #dc3545;
}
.vacancy-modal-content h2 {
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 1em;
}
.vacancy-modal-content .button-group {
    justify-content: center;
    margin-top: 2em;
}

/* Restore 50/50 split for login.html */
.split-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    min-height: 100vh;
    background: #f4f4f9;
}
.split-left, .split-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 100vh;
    box-sizing: border-box;
}
.split-left {
    background: #f4f4f9;
    padding: 0;
}
.split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    padding: 0;
    min-height: 100vh;
}
.logo-img {
    max-width: 90%;
    width: 90vw;
    height: auto;
    margin: 0 auto;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    object-fit: contain;
}
@media (max-width: 900px) {
    .split-container {
        flex-direction: column !important;
        min-height: unset !important;
        width: 100vw !important;
    }
    .split-left, .split-right {
        width: 100vw !important;
        min-height: unset !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .login-box {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 2em auto 0 auto !important;
        padding: 1em !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        box-sizing: border-box !important;
    }
    .register-box {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 2em auto 0 auto !important;
        padding: 1em !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        box-sizing: border-box !important;
    }
    form {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .button-group {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .button-group > * {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-width: unset !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    .logo-img {
        width: 80vw !important;
        max-width: 98vw !important;
        margin-top: 2em !important;
        margin-bottom: 1em !important;
    }
    .site-credit-fixed {
        position: static !important;
        margin-top: 2em !important;
        width: 100% !important;
        font-size: 0.95em !important;
        text-align: center !important;
    }
}
