/* AMO Resume Modal Styles */
.amo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999998 !important;
}

.amo-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 999999 !important;
}

.amo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    z-index: 1000000 !important;
    transition: color 0.2s;
}

.amo-modal-close:hover {
    color: #000;
}

.amo-modal-body {
    padding: 40px 30px 30px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

.amo-modal-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.amo-modal-body .amo-subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.amo-modal-body .amo-label {
    font-weight: 600;
    color: #333;
}

.amo-modal-body p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.amo-modal-body hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.amo-modal-body a {
    text-decoration: none;
}

.amo-modal-body a:hover {
    text-decoration: underline;
}

body.amo-modal-open {
    overflow: hidden;
}

/* Resume listing paragraph margins */
.amo_resumes-resume p {
    margin-bottom: 0px;
}

.amo-resume-desired-job-title,
.amo-resume-posted-date,
.amo-resume-link-wrapper {
    display: block;
}

.amo-resume-posted-date {
    margin-bottom: 14px;
}

/* Modal resume detail styles */
.amo-modal-body .amo-resume-detail-section {
    margin-bottom: 20px;
}

.amo-modal-body .amo-resume-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.amo-modal-body .amo-resume-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.amo-modal-body address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 0;
}

.amo-modal-body .amo-resume-contact-phone,
.amo-modal-body .amo-resume-contact-fax,
.amo-modal-body .amo-resume-contact-email {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .amo-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: calc(100vh - 40px);
    }

    .amo-modal-body {
        padding: 40px 20px 20px;
        max-height: calc(100vh - 100px);
    }
}
