/**
 * DST CV Form - Styles
 * Pomarańczowe tło, minimalistyczny design
 */

/* ===================================
   FORM WRAPPER
   =================================== */


/* ===================================
   FORM FIELDS
   =================================== */
.dst-cv-field {
    margin-bottom: 20px;
}

.dst-cv-field input[type="text"], .dst-cv-field input[type="email"], .dst-cv-field input[type="tel"], .dst-cv-field textarea, .dst-cv-field input[type="date"] {
	border-radius: 8px;
	border: 3px solid var(--DEJOBS-BG, #0B0D15);
	box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
	background: transparent;
	color: #000 !important;
}

.dst-cv-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #0B0D15;
      margin-bottom: 4px;
  line-height: 1;
}

.dst-cv-section-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.dst-cv-input {
    width: 100%;
    padding: 15px;
    border: 3px solid #0B0D15;
    border-radius: 5px;
    font-size: 16px;
    background: #FFF;
    color: #0B0D15;
    transition: border-color 0.3s ease;
}

.dst-cv-input:focus {
    outline: none;
    border-color: #000;
}

.dst-cv-input::placeholder {
    color: #000;
}

/* Field with label wrapper */
.dst-cv-field-with-label {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* Date inputs in row */
.dst-cv-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dst-cv-date-field {
    display: flex;
    flex-direction: column;
}

.dst-cv-label-small {
    font-weight: 600;
    font-size: 14px;
    color: #0B0D15;
    margin-bottom: 4px;
    line-height: 1;
}

.dst-cv-input-date {
    padding: 13px 15px;
}

/* ===================================
   RADIO BUTTONS
   =================================== */


.dst-cv-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #0B0D15;
    padding: 0;
    margin:0;
}

/* Hide default radio */
.dst-cv-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 12px;
    cursor: pointer;
    border: 3px solid #0B0D15;
    border-radius: 50%;
    background: #FDB227;
    position: relative;
    transition: all 0.2s ease;
}

/* Radio hover */
.dst-cv-radio input[type="radio"]:hover {
    background: #FDB227;
    border-color: #000;
}

/* Radio checked - inner circle */
.dst-cv-radio input[type="radio"]:checked {
    background: #FDB227;
    border-color: #0B0D15;
}

.dst-cv-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0B0D15;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dst-cv-radio span {
    font-weight: 500;
}

/* ===================================
   CHECKBOX GROUP
   =================================== */


.dst-cv-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #0B0D15;
    font-weight: 600;
}

/* Hide default checkbox */
.dst-cv-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 12px;
    cursor: pointer;
    border: 3px solid #0B0D15;
    border-radius: 4px;
    background: #FDB227;
    position: relative;
    transition: all 0.2s ease;
}

/* Checkbox hover */
.dst-cv-checkbox input[type="checkbox"]:hover {
    background: #FDB227;
    border-color: #000;
}

/* Checkbox checked - checkmark */
.dst-cv-checkbox input[type="checkbox"]:checked {
    background: #FDB227;
    border-color: #0B0D15;
}

.dst-cv-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #0B0D15;
    font-size: 18px;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* ===================================
   EXPERIENCE ENTRIES
   =================================== */
.dst-cv-experience-entry {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #0B0D15;
    margin-bottom: 15px;
    position: relative;
}

.dst-cv-experience-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dst-cv-remove-experience {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #CD3A14;
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dst-cv-remove-experience:hover {
    background: #A02D10;
}

.dst-cv-add-button {
    display: inline-block;
    background: #0B0D15;
    color: #FFA836;
    border: 3px solid #0B0D15;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dst-cv-add-button:hover {
    background: #FFF;
    color: #0B0D15;
}

/* ===================================
   CONSENTS (RODO)
   =================================== */
.dst-cv-consents {
      margin-bottom: 3rem;
}

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

.dst-cv-consent {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #0B0D15;
}

.dst-cv-consent:last-child {
    margin-bottom: 0;
}

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

/* Custom checkbox for consents */
.dst-cv-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    border: 3px solid #0B0D15;
    border-radius: 4px;
    background: #fdb227;
    position: relative;
    transition: all 0.2s ease;
}

.dst-cv-consent input[type="checkbox"]:hover {
    background: #FF9A1F;
    border-color: #000;
}

.dst-cv-consent input[type="checkbox"]:checked {
    background: #FFA836;
    border-color: #0B0D15;
}

.dst-cv-consent input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #0B0D15;
    font-size: 16px;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.dst-cv-consent a {
    color: #0B0D15;
    text-decoration: underline;
    font-weight: 700;
}

.dst-cv-consent a:hover {
    color: #000;
}

/* ===================================
   SUBMIT BUTTON
   =================================== */
.dst-cv-submit-button {
	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;
	display: flex;
	padding: 18px 28px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	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;
	border: 0;
	transition: all .2s linear;
}

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

.dst-cv-submit-button:active {
    transform: translateY(0);
}

.dst-cv-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.dst-cv-loading {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-top: 20px;
}

.dst-cv-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #FFA836;
    border-top-color: #0B0D15;
    border-radius: 50%;
    animation: dst-cv-spin 1s linear infinite;
}

@keyframes dst-cv-spin {
    to {
        transform: rotate(360deg);
    }
}

.dst-cv-loading p {
    font-size: 16px;
    font-weight: 600;
    color: #0B0D15;
    margin: 0;
}

/* ===================================
   MESSAGES
   =================================== */
.dst-cv-message {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.dst-cv-success {
    background: #4CAF50;
    color: #FFF;
    border: 3px solid #0B0D15;
}

.dst-cv-error {
    background: #F44336;
    color: #FFF;
    border: 3px solid #0B0D15;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 767px) {
    .dst-cv-form {
        padding: 30px 20px;
    }

    .dst-cv-date-row {
        grid-template-columns: 1fr;
    }

    .dst-cv-input {
        font-size: 14px;
        padding: 12px;
    }

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

    .dst-cv-remove-experience {
        position: static;
        width: 100%;
        margin-top: 15px;
    }

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


@media (max-width: 480px) {
  .dst-cv-form-wrapper {
    /* padding: 10px; */
    padding: 0;
  }
  .dst-cv-form {
    /* padding: 20px 15px; */
    padding: 0;
  }
  .dst-cv-consents {
  /* margin-bottom: 3rem; */
  margin-bottom: 1.5rem;
}
}




