.my-custom-module .application-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background: #fff;
}

.my-custom-module h1 {
    color: #115E67;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.my-custom-module h2 {
    color: #115E67;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.my-custom-module .section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Layout */
.my-custom-module .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.my-custom-module .form-row.location-row {
    grid-template-columns: 2fr 1fr 1fr;
}

.my-custom-module .form-row.pay-row {
    grid-template-columns: repeat(2, 1fr);
}

.my-custom-module .form-group {
    margin-bottom: 20px;
}

/* Form Elements */
.my-custom-module .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.my-custom-module .form-group input,
.my-custom-module .form-group select,
.my-custom-module .form-group textarea {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.my-custom-module .form-group textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
}

.my-custom-module .form-group input:focus,
.my-custom-module .form-group textarea:focus,
.my-custom-module .form-group select:focus {
    border-color: #115E67;
    box-shadow: 0 0 0 3px rgba(17, 94, 103, 0.1);
    outline: none;
}

/* Radio Groups */
.my-custom-module .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-custom-module .radio-label {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.my-custom-module .radio-label:hover {
    background-color: #f0f9ff;
}

.my-custom-module .radio-label input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 10px;
}

/* File Upload */
.my-custom-module .file-upload {
    border: 2px dashed #ddd;
    padding: 25px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #f8f9fa;
    position: relative;
}

.my-custom-module .upload-prompt {
    display: block; /* Ensure it is visible by default */
    padding: 10px; /* Add some padding for better spacing */
    background-color: #f8f9fa; /* Match the background color with your module's theme */
    border-radius: 4px; /* Consistent border radius */
    text-align: center; /* Center the text */
    color: #333; /* Text color */
    font-size: 1rem; /* Font size */
    cursor: pointer; /* Indicate that it's interactive */
    transition: background-color 0.2s; /* Smooth transition for hover effects */
}

.my-custom-module .upload-prompt:hover {
    background-color: #e2e8f0; /* Change background on hover for better UX */
}

.my-custom-module .file-upload:hover {
    border-color: #115E67;
    background-color: #f0f9ff;
}

/* File name wrapping in upload preview */
.my-custom-module .file-preview .file-name {
    word-break: break-word;
    max-width: calc(100% - 80px);
    white-space: normal;
    overflow-wrap: break-word;
}

.my-custom-module .file-preview {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Delete button styling for both work experience and file upload */
.my-custom-module .delete-file,
.my-custom-module .delete-experience {
    background: #dc2626;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.my-custom-module .delete-file:hover,
.my-custom-module .delete-experience:hover {
    background: #b91c1c;
}

/* Conditional Inputs */
.my-custom-module .conditional-input {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: none;
}

/* Notes */
.my-custom-module .section-note,
.my-custom-module .field-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

/* Error States */
.my-custom-module .error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.my-custom-module .error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
}

/* Submit Button */
.my-custom-module .form-submit {
    text-align: center;
    margin-top: 30px;
}

.my-custom-module .submit-button {
    background: #115E67;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.my-custom-module .submit-button:hover {
    background: #0d4b52;
}

.my-custom-module .secondary-button {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.my-custom-module .secondary-button:hover {
    background: #e2e8f0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .my-custom-module .section {
        padding: 20px;
    }

    .my-custom-module .form-row,
    .my-custom-module .form-row.location-row,
    .my-custom-module .form-row.pay-row {
        grid-template-columns: 1fr;
    }

    .my-custom-module .form-group input,
    .my-custom-module .form-group select {
        height: 44px;
    }
}

/* iOS Specific */
@supports (-webkit-touch-callout: initial) {
    .my-custom-module input,
    .my-custom-module select,
    .my-custom-module textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 4px;
    }

    .my-custom-module input[type="radio"] {
        -webkit-appearance: radio;
        width: 20px;
        height: 20px;
    }
}