/* Custom Legal Ad - modern form styling (scoped to .clad-wrap so it never leaks into other pages) */
#content {
    margin-right: 0px !important;
}
.clad-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#step_2, #step_3, #cheque-div, #cash-div {
    display: none;
}

.clad-hero {
    margin-bottom: 24px;
}

.clad-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1f2430;
    margin-bottom: 6px;
}

.clad-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 0;
}

/* Step indicator */
.clad-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    max-width: 480px;
}

.clad-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    opacity: 0.45;
    transition: opacity .2s ease;
}

.clad-step.active,
.clad-step.completed {
    opacity: 1;
}

.clad-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9ecf2;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}

.clad-step.active .clad-step-circle,
.clad-step.completed .clad-step-circle {
    background: #c1272d;
    color: #fff;
}

.clad-step-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    white-space: nowrap;
}

.clad-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #e9ecf2;
    margin: 0 10px;
    margin-bottom: 20px;
}

/* Cards */
.clad-wrap .clad-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.clad-wrap .clad-card-header {
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    color: #1f2430;
    padding: 14px 20px;
    font-size: 15px;
}

.clad-wrap .clad-card .card-body {
    padding: 20px;
}

/* Inputs */
.clad-wrap .clad-input,
.clad-wrap select.clad-input,
.clad-wrap textarea.clad-input {
    border: 1px solid #dde1e8;
    border-radius: 8px;
    box-shadow: none;
    padding: 9px 12px;
    height: auto;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.clad-wrap .clad-input:focus {
    border-color: #c1272d;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.12);
}

.clad-wrap label.control-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

/* Newspaper chip toggles */
.clad-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.clad-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #dde1e8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: all .15s ease;
    margin-bottom: 0;
}

.clad-chip input {
    display: none;
}

.clad-chip:hover {
    border-color: #c1272d;
}

.clad-chip.clad-chip-active {
    background: #fdecec;
    border-color: #c1272d;
    color: #c1272d;
}

/* Dropzone */
.clad-wrap .grey-div .card-body {
    padding: 0;
}

.clad-wrap #dZUpload.dropzone {
    border: 2px dashed #dde1e8;
    border-radius: 12px;
    background: #fafafb;
    min-height: 140px;
    padding: 24px;
    transition: border-color .15s ease, background .15s ease;
}

.clad-wrap #dZUpload.dropzone:hover {
    border-color: #c1272d;
    background: #fff8f8;
}

.clad-wrap #dZUpload.dropzone .dz-message {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
}

/* Buttons */
.clad-wrap .big-red-button {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 11px 18px;
    border: none;
    transition: transform .1s ease, box-shadow .15s ease;
}

.clad-wrap .big-red-button:hover {
    box-shadow: 0 4px 10px rgba(193, 39, 45, 0.25);
}

.clad-wrap .big-red-button:active {
    transform: translateY(1px);
}

.clad-wrap .btn-outline-secondary {
    border-radius: 10px;
}

/* Loading overlay (toggled via jQuery .show()/.hide(), so positioning must not rely on flex).
   Overrides the sitewide #loading rule in /css/bootstrap_custom.css (display:block by default),
   whose ID selector otherwise beats a .clad-loading class selector regardless of load order. */
#loading.clad-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    opacity: 1;
}

.clad-spinner {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -22px 0 0 -22px;
    border: 4px solid #eef0f4;
    border-top-color: #c1272d;
    border-radius: 50%;
    animation: clad-spin 0.8s linear infinite;
}

@keyframes clad-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .clad-steps {
        max-width: 100%;
    }
    .clad-step-label {
        display: none;
    }
    .clad-wrap .clad-card .card-body {
        padding: 16px;
    }
}
