/* ============================
   Influencer Marketing Form Styles
   ============================ */

/* Form wrapper */
.imf-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    /* color removed to prevent overriding labels */
}

/* Force label and legend to dark color */
.imf-form-wrapper label,
.imf-form-wrapper legend {
    color: #fff !important; /* dark text color */
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

/* Form sections */
.imf-form-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #82ff1f;
}

.imf-form-section h3 {
    margin-top: 0;
    color: #82ff1f; /* section heading green */
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Form rows */
.imf-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

/* Form groups */
.imf-form-group {
    flex: 1;
    min-width: 250px;
    margin: 0 10px 15px;
}

.imf-form-group label {
    display: block;
    margin-bottom: 5px;
    /* color inherited from global label style */
}

/* Inputs and textareas */
.imf-form-group input[type="text"],
.imf-form-group input[type="email"],
.imf-form-group textarea,
.imf-other-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #82ff1f; /* input text color */
    background-color: #000; /* dark background for contrast */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.imf-form-group input:focus,
.imf-form-group textarea:focus,
.imf-other-input:focus {
    outline: none;
    border-color: #82ff1f;
    box-shadow: 0 0 5px rgba(130, 255, 31, 0.3);
}

/* Radio and Checkbox Styles */
.imf-radio-group,
.imf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.imf-radio,
.imf-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 16px;
    user-select: none;
    color: #82ff1f; /* radio/checkbox label text */
}

.imf-radio input,
.imf-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
}

.imf-radio .checkmark {
    border-radius: 50%;
}

.imf-checkbox .checkmark {
    border-radius: 4px;
}

.imf-radio:hover input ~ .checkmark,
.imf-checkbox:hover input ~ .checkmark {
    background-color: rgba(130, 255, 31, 0.2);
}

.imf-radio input:checked ~ .checkmark,
.imf-checkbox input:checked ~ .checkmark {
    background-color: #82ff1f;
    border-color: #82ff1f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.imf-radio input:checked ~ .checkmark:after {
    display: block;
}

.imf-radio .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: black; /* visible on green */
}

.imf-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black; /* visible on green */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Conditional sections */
.imf-conditional-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imf-conditional-section.active {
    display: block;
    opacity: 1;
}

/* Submit button */
.imf-form-submit {
    text-align: center;
    margin-top: 30px;
}

.imf-submit-button {
    background: #82ff1f;
    color: black;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.imf-submit-button:hover {
    background: #6dcc15;
}

.imf-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.imf-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.imf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.imf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .imf-form-row {
        flex-direction: column;
    }

    .imf-form-group {
        margin: 0 0 15px;
    }
}

@media (max-width: 480px) {
    .imf-form-section {
        padding: 15px;
    }
}
