/**
 * DST Job Application Modal Styles
 * 
 * @package DstDesign Theme
 * @since 1.0.0
 */

/* Modal Overlay */
.dst-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999 !important; /* Over everything */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dst-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Modal Content */
.dst-modal-content {
    position: relative;
    z-index: 2; /* Above overlay */
    background: linear-gradient(135deg, #F4E4C1 0%, #E6D5B8 100%);
    border: 3px solid #CD3A14;
    border-radius: 20px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.dst-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(205, 58, 20, 0.9);
    border: 2px solid #000;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.dst-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(205, 58, 20, 1);
}

/* Modal Header */
.dst-modal-header {
    margin-bottom: 30px;
}

.dst-modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.dst-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* Form Styles */
.dst-application-form {
    margin-bottom: 30px;
}

.dst-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.dst-form-row-full {
    flex-direction: column;
}

.dst-form-row-half {
    flex-direction: row;
}

.dst-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dst-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #0B0D15;
    margin-bottom: 6px;
}

.dst-form-label .required-star {
    color: #CD3A14;
    font-weight: bold;
}

.dst-form-row input,
.dst-form-row textarea {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #FFF;
    color: #000;
    transition: border-color 0.2s;
}

.dst-form-row input:focus,
.dst-form-row textarea:focus {
    outline: none;
    border-color: #CD3A14;
}

.dst-form-row input::placeholder,
.dst-form-row textarea::placeholder {
    color: #666;
}

.dst-form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* Consents */
.dst-form-consents {
    margin-bottom: 25px;
}

.dst-consent-helper {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.dst-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

.dst-consent-item input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.dst-consent-item span {
    font-size: 13px;
    line-height: 1.5;
    color: #000;
}

.dst-consent-item .required-star {
    color: #CD3A14;
    font-weight: bold;
}

.dst-consent-item a {
    color: #CD3A14;
    text-decoration: underline;
}

.dst-consent-item a:hover {
    text-decoration: none;
}

/* Submit Button */
.dst-form-actions {
    margin-bottom: 20px;
}

.dst-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #CD3A14 0%, #A02D10 100%);
    color: #FFF;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dst-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.dst-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dst-submit-spinner {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Messages */
.dst-form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.dst-form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 2px solid #28A745;
}

.dst-form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 2px solid #DC3545;
}

/* Modal Footer */
.dst-modal-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.dst-modal-footer p {
    font-size: 14px;
    color: #333;
    margin: 0 0 15px 0;
}

.dst-phone-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #FDB227;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 10px;
  border: 2px solid var(--DEJOBS-Secodnary, #CD3A14);
  background: #14111A;
  box-shadow: 0 0 0 -2px #CD3A14, 0 0 0 2px #FDB227;
  color: var(--DEJOBS-BG-light, #F0D4A5);
  font-family: var(--DEJOBS-FOnt-Body, Rawest);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}


.dst-phone-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dst-phone-button svg {
    stroke: #FDB227;
}



/* job-application.css | https://dejobs.ddev.site/wp-content/themes/dstdesign-theme/dst-jobs-module/shortcodes/assets/job-application.css?ver=1761733724 */

.dst-form-row input, .dst-form-row textarea {
  /* color: #000; */
  color: #000 !important;
  border-radius: 8px !important;
  border: 3px solid var(--DEJOBS-BG, #0B0D15) !important;
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05) !important;
  background: transparent !important;
}

.dst-consent-item input[type="checkbox"] {
  background-color: #a61818;
  border: 2px solid #ccc;
  accent-color: #cd3a14;
}

.dst-submit-button {
  border-radius: 8px;
  background: var(--DEJOBS-Secodnary, #CD3A14);
  box-shadow: 0 0 24px 0 rgba(194, 0, 0, 0.20), 0 0 0 2px #A8331F, 0 0 0 2px rgba(10, 13, 18, 0.70) inset;
  color: var(--DEJOBS-BG-light, #F0D4A5);
  font-family: var(--DEJOBS-FOnt-Body, Rawest);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

.dst-modal-close {
  /* border: 2px solid #000; */
  /* width: 42px; */
  /* height: 42px; */
  border: 0px solid #000;
  width: 32px;
  height: 32px;
  color: var(--DEJOBS-BG-light, #F0D4A5);
  font-family: var(--DEJOBS-FOnt-Body, Rawest);
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;

}


/* Inline | https://dejobs.pl.dstdesign.website/oferta/kierowca-miedzynarodowy-plandeka-2/ */

#dst-application-modal .dst-form-label {
  color: #000;
  margin-bottom: 5px;
  line-height: 1;
}

/* job-application.css | https://dejobs.pl.dstdesign.website/wp-content/themes/dstdesign-theme/dst-jobs-module/shortcodes/assets/job-application.css?ver=1761831445 */

#dst-application-modal  .dst-form-row {
  row-gap: 0;
}



/* Responsive */
@media (max-width: 767px) {
    .dst-modal-content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .dst-modal-title {
        font-size: 24px;
    }

    .dst-form-row-half {
        flex-direction: column;
    }

    .dst-consent-item span {
        font-size: 12px;
    }

    .dst-submit-button {
        font-size: 16px;
        padding: 14px 20px;
    }

    .dst-phone-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .dst-modal {
        padding: 10px;
    }

    .dst-modal-content {
        padding: 25px 15px;
        max-height: 95vh;
    }

    .dst-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .dst-modal-title {
        font-size: 20px;
    }
}
