/*
 Theme Name:   jobscout Child
 Theme URI:    https://dk.kesug.com/
 Description:  Child theme for jobscout
 Author:       Kurt Hadji
 Author URI:   https://dk.kesug.com/
 Template:     jobscout
 Version:      1.0.0
*/


/*--------------------------------------------------------------
 # PAYMENT SUCCESS BUTTON
--------------------------------------------------------------*/

.payment-success-message .button {
  display: inline-block;
  padding: 10px 20px;
  background: #0073aa;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  margin: 5px;
}
.payment-success-message .button:hover {
  background: #005f8a;
}

.hidden-submit-button {
  display: none !important;
}



/*--------------------------------------------------------------
 # UNIVERSAL DARK OVERLAY FOR MODALS
--------------------------------------------------------------*/

#custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 9998;
}
#custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}



/*--------------------------------------------------------------
 # FIVERR-STYLE 2-COLUMN ACCOUNT MODALS (UM Login/Register)
--------------------------------------------------------------*/

.custom-um-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.97);
    background: #fff;
    width: 94%;
    max-width: 900px;
    border-radius: 16px;
    padding: 0;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    transition: .25s ease;
}
.custom-um-modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.custom-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #777;
    transition: .2s;
    z-index: 10;
}
.custom-modal-close:hover {
    color: #333;
}

/* 2-column layout */
.custom-um-modal .modal-content {
    display: flex;
    gap: 40px;
    padding: 40px;
}

/* LEFT PANEL (image + text) */
.custom-um-modal .modal-left {
    flex: 1;
}
.custom-um-modal .modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}
.custom-um-modal .modal-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.custom-um-modal .modal-left p {
    margin-bottom: 12px;
}
.custom-um-modal .modal-left ul {
    margin-top: 10px;
    padding-left: 18px;
}

/* RIGHT PANEL (form) */
.custom-um-modal .modal-right {
    flex: 1;
}

/* UM buttons */
.custom-um-modal .um-button,
.custom-um-modal .um-form input[type="submit"] {
    background: #1dbf73 !important;
    border: none !important;
    padding: 13px 0 !important;
    width: 100%;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    transition: background .2s ease;
}
.custom-um-modal .um-button:hover,
.custom-um-modal .um-form input[type="submit"]:hover {
    background: #19a866 !important;
}

/* Field spacing */
.custom-um-modal .um-field {
    margin-bottom: 18px !important;
}

/* Social login */
.custom-um-modal .social-login {
    margin-top: 20px;
    text-align: center;
}

@media(max-width: 768px) {
    .custom-um-modal .modal-content {
        flex-direction: column;
        padding: 20px;
    }
}



/*--------------------------------------------------------------
 # JOB APPLICATION MODAL (Contact Form 7)
--------------------------------------------------------------*/

.jb-apply-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.jb-apply-modal-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 28px 32px;
  width: 92%;
  max-width: 420px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide .35s ease-out;
}

/* Scrollbars */
.jb-apply-modal-content::-webkit-scrollbar {
  width: 7px;
}
.jb-apply-modal-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 5px;
}

/* Slide animation */
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(25px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.jb-apply-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  color: #666;
  transition: .2s;
}
.jb-apply-close:hover {
  color: #000;
  transform: scale(1.2);
}

/* Inputs */
.jb-apply-modal-content input[type="text"],
.jb-apply-modal-content input[type="email"],
.jb-apply-modal-content input[type="file"],
.jb-apply-modal-content textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
  transition: border .2s, box-shadow .2s;
}

.jb-apply-modal-content input:focus,
.jb-apply-modal-content textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 4px rgba(0, 115, 170, 0.3);
}

.jb-apply-modal-content textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

/* Submit button */
.jb-apply-modal-content input[type="submit"] {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: auto;
  transition: .2s;
}
.jb-apply-modal-content input[type="submit"]:hover {
  background: #005f8d;
}

.wpcf7-form,
.wpcf7 {
  margin-bottom: 10px !important;
}