/* -------------------------------------------------------------------------
 * NC Designs.Studio - contact form (multi-step OTP)
 *
 * Preserves the existing .form-status / .hp-field / .btn styles already in
 * main.css. Adds the multi-step shell, OTP digit inputs, success card.
 * ------------------------------------------------------------------------- */

/* Portfolio grid.
   - Phone (<576px): 2 per row.
   - Tablet  (>=576px): 3 per row (Bootstrap default).
   - Desktop (>=992px): 4 per row with extra spacing.
   Tiles get a fixed height so rows line up regardless of source image
   aspect ratio. Images cover the tile (object-fit) so they always fill. */
.works .row.no-gutter > .work {
    position: relative;
    overflow: hidden;
}
.works .row.no-gutter > .work .work-box,
.works .row.no-gutter > .work .work-box img {
    display: block;
    width: 100%;
    height: 100%;
}
.works .row.no-gutter > .work .work-box img {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 575px) {
    .works .row.no-gutter > .work {
        width: 50%;
        float: left;
        height: 160px;
        padding: 6px;
        box-sizing: border-box;
    }
    .works .row.no-gutter > .work .overlay {
        left: 6px;
        width: calc(100% - 12px);
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .works .row.no-gutter > .work {
        width: 33.3333%;
        float: left;
        height: 200px;
        padding: 8px;
        box-sizing: border-box;
    }
    .works .row.no-gutter > .work .overlay {
        left: 8px;
        width: calc(100% - 16px);
    }
}

@media (min-width: 992px) {
    .works .row.no-gutter > .work {
        width: 25%;
        float: left;
        height: 220px;
        padding: 12px;
        box-sizing: border-box;
    }
    .works .row.no-gutter > .work .overlay {
        left: 12px;
        width: calc(100% - 24px);
    }
}

.contact-form .step { display: block; }
.contact-form .step[hidden] { display: none; }

/* OTP digit inputs */
.otp-inputs {
    display: flex;
    gap: 8px;
    margin: 14px 0 10px 0;
    justify-content: space-between;
}

.otp-inputs .otp-digit {
    width: 100%;
    max-width: 46px;
    height: 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    color: #2d3033;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-inputs .otp-digit:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.otp-inputs .otp-digit:disabled {
    background: #f5f5f3;
    color: #b3b3b3;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .otp-inputs { gap: 6px; }
    .otp-inputs .otp-digit {
        max-width: 38px;
        height: 46px;
        font-size: 20px;
    }
}

.otp-intro {
    font-size: 13px;
    line-height: 20px;
    color: #6c7279;
    margin: 0 0 6px 0;
}

.otp-intro strong {
    color: #2d3033;
    font-weight: 600;
    word-break: break-all;
}

.otp-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.btn-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #2d3033;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-link:disabled,
.btn-link[disabled] {
    color: #b3b3b3;
    cursor: not-allowed;
    text-decoration: none;
}

.btn-link.is-counting {
    color: #b3b3b3;
    text-decoration: none;
}

/* Success card */
.step-success {
    text-align: center;
    padding: 16px 8px 8px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #dff0d8;
    color: #3c763d;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    border: 1px solid #d6e9c6;
}

.success-title {
    font-size: 22px;
    color: #2d3033;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.success-body {
    font-size: 14px;
    line-height: 22px;
    color: #6c7279;
    margin: 0;
}

.success-body span {
    color: #2d3033;
    font-weight: 600;
    word-break: break-all;
}
