/* Electrodry Custom Form Theme */

/* Base form container */
.electrodry-form-container {
    font-family: "Open Sans", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    color: #333;
}

/* Form content */
.electrodry-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fieldsets */
.electrodry-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.electrodry-legend {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.electrodry-fieldset-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Field wrappers inside the fieldset container */
.electrodry-fieldset-content > .electrodry-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Field wrappers */
.electrodry-field-wrapper {
    margin-bottom: 0;
    width: 100%;
}

/* Two column layout */
.electrodry-two-column-group {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.electrodry-two-column-group > fieldset.electrodry-fieldset {
    flex: 1 1 0;
    min-width: 0;
}

.electrodry-two-column-group .electrodry-field-wrapper {
    width: 100%;
    margin-bottom: 0;
}

/* Labels */
.electrodry-field-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-required-indicator {
    color: #e53935;
    margin-left: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Inputs */
.electrodry-text-input,
.electrodry-email-input,
.electrodry-tel-input,
.electrodry-number-input,
.electrodry-textarea,
.electrodry-input-wrapper input[type="text"],
.electrodry-input-wrapper input[type="email"],
.electrodry-input-wrapper input[type="tel"],
.electrodry-input-wrapper input[type="number"],
.electrodry-input-wrapper textarea,
.electrodry-input-wrapper select {
    width: 100%;
    height: 60px;
    padding: 10px 15px 10px 20px;
    border: 1px solid #004185 !important;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: #004185 !important;
    background-color: #fff;
}

/* Placeholder text color - scoped to electrodry forms only */
.electrodry-form-container ::placeholder,
.electrodry-form-container ::-webkit-input-placeholder,
.electrodry-form-container :-moz-placeholder,
.electrodry-form-container ::-moz-placeholder,
.electrodry-form-container :-ms-input-placeholder {
    color: #004185 !important;
}

.electrodry-text-input:focus,
.electrodry-email-input:focus,
.electrodry-tel-input:focus,
.electrodry-number-input:focus,
.electrodry-textarea:focus,
.electrodry-input-wrapper input:focus,
.electrodry-input-wrapper textarea:focus,
.electrodry-input-wrapper select:focus,
.electrodry-form-container .text:focus,
.electrodry-form-container input[type="text"]:focus,
.electrodry-form-container input[type="email"]:focus,
.electrodry-form-container input[type="tel"]:focus,
.electrodry-form-container input[type="number"]:focus,
.electrodry-form-container select:focus {
    border-color: #004185 !important;
    box-shadow: 0 0 0 3px rgba(0, 65, 133, 0.2);
}

.electrodry-form-container .electrodry-textarea,
.electrodry-form-container textarea {
    min-height: 150px;
    resize: vertical;
    height: auto;
    color: #004185 !important;
}

/* Checkbox section */
.services-group .electrodry-field-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.electrodry-checkboxes-container {
    margin-top: 5px;
}

.electrodry-checkboxes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.electrodry-checkboxes-column {
    flex: 1;
    min-width: 200px;
}

.electrodry-checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.electrodry-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #004185;
    cursor: pointer;
}

.electrodry-checkbox-item label {
    font-size: 14px;
    cursor: pointer;
}

/* Date picker */
.electrodry-date-picker {
    position: relative;
}

.electrodry-date-input {
    width: 100%;
    height: 60px;
    padding: 10px 15px 10px 20px;
    border: 1px solid #004185 !important;
    border-radius: 5px;
    appearance: none;
    box-sizing: border-box;
    color: #004185 !important;
}

.electrodry-date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #004185;
    pointer-events: none;
}

/* Buttons */
.electrodry-form-navigation {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.electrodry-btn {
    padding: 12px 24px;
    background-color: #004185;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.electrodry-btn:hover {
    background-color: #003366;
}

.electrodry-btn-prev {
    background-color: #f3f3f3;
    color: #333;
    margin-right: 10px;
}

.electrodry-btn-prev:hover {
    background-color: #e6e6e6;
}

.electrodry-btn-submit {
    background-color: #FD0;
    color: #004185;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 20.5px 40px;
    width: auto !important; /* Override inline style width: 100% */
    max-width: none !important; /* Override inline style max-width: 746px */
    display: inline-block !important; /* Override inline style display: block */
    margin: 0 !important; /* Override inline style margin: 0px auto */
}

.electrodry-btn-submit:hover {
    opacity: 0.9;
    background-color: #FD0;
}

/* Validation */
.electrodry-validation-message {
    color: var(--red);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Tooltips */
.electrodry-tooltip {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

/* Honeypot field - uses Umbraco standard class */
.umbraco-forms-hidden {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Force apply styling to form fields - scoped to electrodry forms only */
.electrodry-form-container input[type="text"],
.electrodry-form-container input[type="email"],
.electrodry-form-container input[type="tel"],
.electrodry-form-container input[type="number"] {
    height: 60px !important;
    border: 1px solid #004185 !important;
    padding: 10px 15px 10px 20px !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    color: #004185 !important;
    font-weight: 600 !important;
}

.electrodry-form-container textarea {
    min-height: 150px !important;
    border: 1px solid #004185 !important;
    padding: 10px 15px 10px 20px !important;
    border-radius: 5px !important;
    color: #004185 !important;
}

/* Placeholder styling for Electrodry forms only */
.electrodry-form-container input::placeholder,
.electrodry-form-container textarea::placeholder,
.electrodry-form-container input::-webkit-input-placeholder,
.electrodry-form-container textarea::-webkit-input-placeholder {
    color: #004185 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .electrodry-two-column-group {
        flex-direction: column;
    }

    .electrodry-two-column-group .electrodry-field-wrapper {
        width: 100%;
    }

    .electrodry-checkboxes-wrapper {
        flex-direction: column;
    }

    .electrodry-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* Modern File Upload Component */
.electrodry-modern-upload {
    margin-bottom: 20px;
}

.electrodry-upload-container {
    width: 100%;
}

.electrodry-upload-area {
    border: 2px dashed #004185;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 65, 133, 0.05);
}

.electrodry-upload-area:hover,
.electrodry-upload-area.drag-over {
    border-color: #0069d9;
    background-color: rgba(0, 65, 133, 0.1);
}

.electrodry-upload-text {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #333;
}

.electrodry-upload-link {
    color: #004185;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.electrodry-upload-requirements {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.electrodry-file-preview-container {
    margin-top: 15px;
}

.electrodry-file-preview {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    position: relative;
}

.electrodry-file-icon {
    margin-right: 12px;
    color: #004185;
}

.electrodry-file-info {
    flex-grow: 1;
}

.electrodry-file-name {
    font-size: 14px;
    margin-bottom: 2px;
    word-break: break-all;
}

.electrodry-file-size {
    font-size: 12px;
    color: #6c757d;
}

.electrodry-file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.electrodry-file-remove svg {
    width: 16px;
    height: 16px;
}

.electrodry-upload-error {
    margin-top: 10px;
    padding: 10px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.electrodry-upload-progress {
    margin-top: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.electrodry-progress-indicator {
    height: 100%;
    background-color: #004185;
    width: 0;
    transition: width 0.3s ease;
}

.electrodry-upload-success {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.electrodry-upload-success svg {
    margin-right: 10px;
}

/* Preview icons for different file types */
.electrodry-file-icon.pdf svg {
    fill: #f40f02;
}

.electrodry-file-icon.image svg {
    fill: #004185;
}

/** Services Checkbox **/
.checkboxlist {
    display: flex;
    justify-content: space-between;
}

.checkboxlist label {
    color: #004185;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Base styles for the checkboxes */
.checkboxlist input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #004185;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transform: translateY(3px);
}

/* Style for the checked state */
.checkboxlist input[type="checkbox"]:checked {
    background-color: #004185;
    border-color: #004185;
}

/* Add a checkmark icon when checked */
.checkboxlist input[type="checkbox"]:checked::before {
    content: url('/media/zrzblnj1/check-icon-sm.png');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 18px;
}


/* Style for the labels */
.checkboxlist label {
    font-size: 14px;
    cursor: pointer;
}

/* Optional: Add spacing between each checkbox and label */
.checkboxlist input[type="checkbox"]+label {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .electrodry-upload-area {
        padding: 20px 15px;
    }

    .electrodry-upload-text {
        font-size: 14px;
    }

    .electrodry-upload-requirements {
        font-size: 12px;
    }
    
    .checkboxlist { 
        flex-direction: column;    
    }
}

/* Define CSS variables for consistency */
