/* DST Kitchen Leads - Frontend Styles */

.dst-kitchen-leads-form-wrapper {
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.kl-form {
    width: 100%;
}

.kl-path-content {
    color: var(--FurnitourBlack, #000);
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 0px;
}

.kl-content-title {
    color: var(--FurnitourBlack, #000);
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 20px;
    text-transform: uppercase;
}


.kl-path-content ul,
.kl-path-content ol {
    margin: 0 0 0px;
    margin-bottom:0;
      margin-top: 16px;
}
.kl-path-content ul li,
.kl-path-content ol li {
    margin-bottom:16px;
}

.kl-path-content ol p {
    margin-top: 8px;
}

.kl-form-title {
    margin-top: 40px;
}

.kl-path-follow-up {
    margin-top: 40px;
}

/* Sekcja tytułu */
.kl-section-title {
    color: var(--FurnitourBlack, #000);
    font-size: 22px;
    line-height: normal;
    text-transform: uppercase;
    margin: 0 0 30px;
    text-align: center;
}

/* Radio buttony - custom style */
.kl-radio-group {
    display: grid;
    grid-template: auto / 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.kl-form-section {
    display: flex;
    flex-direction: row;
}

.kl-radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kl-radio-label:hover {
    background: rgba(0, 0, 0, 0.05);
}

.kl-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kl-radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.kl-radio-label input[type="radio"]:checked ~ .kl-radio-custom {
    background: #000;
}

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

.kl-radio-text {
    color: var(--FurnitourBlack, #000);
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

.kl-radio-label input[type="radio"]:checked ~ .kl-radio-text {
    color: #000;
}

/* Pola formularza */
.kl-form-fields {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.kl-form-fields.kl-visible {
    opacity: 1;
    max-height: 5000px;
}

.kl-form-row {
    margin-bottom: 30px;
}

.kl-form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.kl-form-field {
    margin-bottom: 30px;
}

.kl-form-field label {
    display: block;
    color: var(--FurnitourBlack, #000);
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kl-required {
    color: #c00;
}

/* Inputy - style zgodne z .wpcf7 */
.kl-form-field input[type="text"],
.kl-form-field input[type="email"],
.kl-form-field textarea {
    border: 0;
    border-bottom: 1px solid #000;
    color: var(--FurnitourGray, #A6A89A);
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
}

.kl-form-field input:focus,
.kl-form-field textarea:focus {
    border-bottom-color: #666;
}

.kl-form-field textarea {
    resize: vertical;
    min-height: 100px;
    text-transform: none;
}

/* File upload */
.kl-file-upload-area {
    position: relative;
    border: 2px dashed #000;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.kl-file-upload-area:hover {
    background: rgba(0, 0, 0, 0.02);
}

.kl-file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.kl-file-icon {
    font-size: 48px;
    display: none;
    margin-bottom: 15px;
}

.kl-file-text {
    display: block;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kl-file-info {
    display: block;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 12px;
    color: #666;
}

/* Lista wybranych plików */
.kl-files-list {
    margin-top: 15px;
}

.kl-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f5f5f5;
    margin-bottom: 8px;
    border-left: 3px solid #000;
}

.kl-file-name {
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 14px;
    color: #000;
    flex: 1;
}

.kl-file-size {
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 12px;
    color: #666;
    margin-right: 15px;
}

.kl-file-remove {
    background: #000;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background 0.3s ease;
}

.kl-file-remove:hover {
    background: #333;
}

/* Checkbox zgody */
.kl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.kl-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.kl-checkbox-text {
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #000;
}

/* Submit button - zgodny z .wpcf7 */
.kl-form-actions {
    margin-top: 40px;
    text-align: left;
}

.kl-submit-btn {
    display: inline-flex;
    height: 64px;
    min-width: 250px;
    max-width: none;
    width: 100%;
    padding: 0 40px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #000;
    border: none;
    color: #FFF;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.kl-submit-btn:hover {
    background: #333;
}

.kl-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.kl-submit-icon {
    font-size: 20px;
    display: none;
}

/* Komunikaty */
.kl-form-messages {
    margin-top: 20px;
}

.kl-message {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.kl-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.kl-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.kl-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading state */
.kl-form.kl-loading .kl-submit-btn {
    position: relative;
    color: transparent;
}

.kl-form.kl-loading .kl-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kl-spin 0.8s linear infinite;
}

@keyframes kl-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    
    .kl-radio-group {
    grid-template: auto / 1fr;
    gap: 10px;
    margin-top: 10px;
    }

    .kl-radio-text {
    font-size: 14px;
    }

    .kl-radio-custom {
    width: 20px;
    height: 20px;
    }

    .kl-path-content p {
    margin: 0 0 10px;
    }


}