/* ============================================================
   Company Registration Form — Stylesheet
   ============================================================ */

/* ── Wrapper ── */
.crf-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    padding: 0 16px 40px;
}

.crf-intro {
    font-size: 15px;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── Progress bar ── */
.crf-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    gap: 0;
}

.crf-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.crf-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #c8c8c8;
    background: #fff;
    color: #c8c8c8;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.crf-step-node.is-active .crf-circle,
.crf-step-node.is-done   .crf-circle {
    border-color: #3d7a5e;
    background:   #3d7a5e;
    color: #fff;
}

.crf-label {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-align: center;
    color: #999;
    text-transform: uppercase;
    line-height: 1.3;
}

.crf-step-node.is-active .crf-label,
.crf-step-node.is-done   .crf-label {
    color: #3d7a5e;
    font-weight: 600;
}

.crf-line {
    flex: 1 1 auto;
    height: 2px;
    background: #ddd;
    margin-top: 19px;
    min-width: 20px;
    transition: background 0.3s;
}

.crf-line.is-done {
    background: #3d7a5e;
}

/* ── Panels ── */
.crf-panel {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
    animation: crfFadeIn 0.25s ease;
}

.crf-panel.is-active {
    display: block;
}

@keyframes crfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ── Fields ── */
.crf-field {
    margin-bottom: 22px;
}

.crf-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.crf-field label.crf-req::after {
    content: ' *';
    color: #c0392b;
}

.crf-field input[type="text"],
.crf-field input[type="email"],
.crf-field input[type="number"],
.crf-field input[type="date"],
.crf-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    appearance: none;
}

.crf-field input:focus,
.crf-field textarea:focus {
    border-color: #3d7a5e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61,122,94,.12);
}

.crf-field input.crf-invalid {
    border-color: #c0392b;
    background: #fff8f8;
}

.crf-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* ── Radios ── */
.crf-radios {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.crf-radios label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.crf-radios input[type="radio"] {
    accent-color: #3d7a5e;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── Conditional blocks ── */
.crf-conditional {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid #3d7a5e;
    border-radius: 0 4px 4px 0;
}

.crf-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ── File inputs ── */
.crf-file-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.crf-file-wrap input[type="file"] {
    display: none;
}

.crf-file-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-size: 13px;
    color: #444;
    background: #f5f5f5;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.crf-file-btn:hover {
    background: #e8e8e8;
}

.crf-file-name {
    font-size: 13px;
    color: #888;
}

/* ── Section titles ── */
.crf-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #3d7a5e;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 22px;
}

/* ── Navigation buttons ── */
.crf-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.crf-btn-next,
.crf-btn-prev,
.crf-btn-submit {
    padding: 13px 32px;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.crf-btn-next,
.crf-btn-prev {
    background: #5a6271;
    color: #fff;
}

.crf-btn-next:hover,
.crf-btn-prev:hover {
    background: #474f5c;
}

.crf-btn-submit {
    background: #b5a48a;   /* matches the "SEND" button tone in screenshots */
    color: #fff;
}

.crf-btn-submit:hover {
    background: #9e8f79;
}

.crf-btn-submit:disabled,
.crf-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Success panel ── */
.crf-success-panel {
    text-align: center;
    padding: 60px 20px;
    animation: crfFadeIn 0.4s ease;
}

.crf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #3d7a5e;
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 24px;
}

.crf-success-panel h3 {
    font-size: 22px;
    color: #3d7a5e;
    margin-bottom: 12px;
}

.crf-success-panel p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Error banner ── */
.crf-error-banner {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 14px 18px;
    color: #721c24;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 16px;
}

/* ── Inline field errors ── */
.crf-field-error {
    display: block;
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .crf-progress  { gap: 0; }
    .crf-label     { font-size: 8px; }
    .crf-circle    { width: 30px; height: 30px; font-size: 12px; }
    .crf-line      { min-width: 10px; margin-top: 15px; }
    .crf-nav       { flex-direction: column; }
    .crf-btn-next,
    .crf-btn-prev,
    .crf-btn-submit { width: 100%; text-align: center; }
}




