/* ==========================================================
   Dasa Insight Registration Form – Styles
   Clean, premium feel inspired by dasa.se
   ========================================================== */

.dif-form-wrap {
    max-width: 700px;
    margin: 2.5rem auto 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #222;
}

.dif-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #111;
    letter-spacing: -0.01em;
}

.dif-intro {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Messages */
.dif-message {
    padding: 0.85rem 1.1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
}
.dif-success {
    background: #f0faf0;
    border: 1px solid #b6d7a8;
    color: #2e6b2e;
}
.dif-error {
    background: #fef2f2;
    border: 1px solid #e8aaaa;
    color: #9b2c2c;
}

/* Sections */
.dif-section {
    border: none;
    border-radius: 0;
    padding: 0 0 1.5rem 0;
    margin-bottom: 0.5rem;
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
}
.dif-section:last-of-type {
    border-bottom: none;
}
.dif-section legend {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 0;
    margin-bottom: 1rem;
}
.dif-section-desc {
    font-size: 0.84rem;
    color: #888;
    margin: -0.5rem 0 1rem 0;
    font-style: italic;
}

/* Machine blocks get a subtle card style to visually separate them */
.dif-machine-block {
    background: #f7f7f7;
    border: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    border-radius: 6px;
    padding: 1.25rem 1.5rem 1rem 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* Fields */
.dif-field {
    margin-bottom: 1rem;
}
.dif-field label {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: #444;
    letter-spacing: 0.01em;
}
.dif-req {
    color: #c8102e;
    font-weight: 600;
}
.dif-field input[type="text"],
.dif-field input[type="email"],
.dif-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: #222;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.dif-field input:focus,
.dif-field textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Row layout for side-by-side fields */
.dif-row {
    display: flex;
    gap: 1rem;
}
.dif-field-wide {
    flex: 2;
}
.dif-field-narrow {
    flex: 1;
}

/* Checkboxes */
.dif-checkbox {
    margin-bottom: 0.65rem;
}
.dif-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.87rem;
    cursor: pointer;
    color: #444;
    line-height: 1.45;
}
.dif-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
}

/* Primary button – solid dark, clean */
.dif-btn-primary {
    display: inline-block;
    padding: 0.75rem 2.2rem;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
.dif-btn-primary:hover {
    background: #a50d25;
}
.dif-btn-primary:active {
    transform: scale(0.98);
}

/* Add machine – minimal text-style button */
.dif-btn-secondary {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: transparent;
    color: #666;
    border: 1.5px solid #ccc;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dif-btn-secondary:hover {
    background: #c8102e;
    color: #fff;
    border-color: #c8102e;
}

/* Remove button – ghost style */
.dif-btn-remove {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: transparent;
    color: #999;
    border: none;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.dif-btn-remove:hover {
    color: #c8102e;
    background: rgba(200, 16, 46, 0.06);
}

/* Wrappers */
.dif-add-machine-wrap {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.dif-submit-wrap {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}
.dif-remove-wrap {
    text-align: right;
}

/* Responsive */
/* Reset theme hover bleed-through */
.dif-form-wrap fieldset:hover,
.dif-form-wrap .dif-section:hover,
.dif-form-wrap .dif-field:hover,
.dif-form-wrap label:hover {
    background-color: inherit;
    box-shadow: none;
    outline: none;
}

/* Responsive */
@media (max-width: 600px) {
    .dif-row {
        flex-direction: column;
        gap: 0;
    }
    .dif-form-wrap {
        margin: 1.5rem 1rem;
    }
    .dif-machine-block {
        padding: 1rem !important;
    }
}
