/*
=========================================================
CAMPAIGN AGENCY BRIEF
=========================================================
*/

.cab-wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px;
    color: #111;
}

.cab-wrapper *,
.cab-wrapper *::before,
.cab-wrapper *::after {
    box-sizing: border-box;
}


/* =====================================================
   HEADER
===================================================== */

.cab-header {
    max-width: 850px;
    margin-bottom: 55px;
}

.cab-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .6;
}

.cab-header h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
}

.cab-header p {
    margin: 0;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.7;
    opacity: .65;
}


/* =====================================================
   SUBMISSION RESULT
===================================================== */

.cab-result {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 40px;
    padding: 24px 28px;
    border-radius: 14px;
}

.cab-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
}

.cab-result strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.cab-result p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}


/* SUCCESS */

.cab-result-success {
    border: 1px solid #b8dfc2;
    background: #f2fbf4;
    color: #173d20;
}

.cab-result-success .cab-result-icon {
    background: #1f8a3b;
    color: #fff;
}


/* WARNING */

.cab-result-warning {
    border: 1px solid #ead59b;
    background: #fffaf0;
    color: #5d4711;
}

.cab-result-warning .cab-result-icon {
    background: #d69b00;
    color: #fff;
}


/* ERROR */

.cab-result-error {
    border: 1px solid #e7bcbc;
    background: #fff5f5;
    color: #681d1d;
}

.cab-result-error .cab-result-icon {
    background: #c93636;
    color: #fff;
}


/* =====================================================
   SECTION
===================================================== */

.cab-section {
    margin-bottom: 42px;
    padding: 42px;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #fff;
}

.cab-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 34px;
}

.cab-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.cab-section-heading h2 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.2;
}


/* =====================================================
   GRID
===================================================== */

.cab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cab-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}


/* =====================================================
   FIELD
===================================================== */

.cab-field {
    min-width: 0;
}

.cab-full {
    grid-column: 1 / -1;
}

.cab-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.cab-field label span {
    margin-left: 3px;
    color: #d22;
}

.cab-field input,
.cab-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font-size: 15px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.cab-field input {
    min-height: 50px;
    padding: 14px 15px;
}

.cab-field textarea {
    min-height: 125px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.6;
}

.cab-field input:focus,
.cab-field textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.cab-helper {
    margin-bottom: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #f7f7f7;
    color: #666;
    font-size: 13px;
    line-height: 1.55;
}


/* =====================================================
   UPLOAD
===================================================== */

.cab-upload-intro {
    margin: -10px 0 28px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.cab-upload-box {
    padding: 48px 30px;
    border: 2px dashed #d8d8d8;
    border-radius: 15px;
    background: #fafafa;
    text-align: center;
}

.cab-upload-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 26px;
}

.cab-upload-box h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.cab-upload-box p {
    max-width: 680px;
    margin: 0 auto 23px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.cab-file-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 25px;
    border-radius: 8px;
    background: #111;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cab-file-button:hover {
    background: #2a2a2a;
}

.cab-file-button input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.cab-upload-box > small {
    display: block;
    margin-top: 18px;
    color: #888;
    font-size: 12px;
}

.cab-file-list {
    max-width: 700px;
    margin: 22px auto 0;
    text-align: left;
}

.cab-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    padding: 12px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.cab-file-item small {
    color: #888;
}


/* =====================================================
   SUBMIT
===================================================== */

.cab-submit-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 45px;
    border-radius: 18px;
    background: #111;
    color: #fff;
}

.cab-submit-section > div {
    max-width: 700px;
}

.cab-submit-section > div > span {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    opacity: .55;
}

.cab-submit-section h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
}

.cab-submit-section p {
    margin: 0;
    color: rgba(255,255,255,.68);
    line-height: 1.65;
}

.cab-submit-button {
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 30px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.cab-submit-button:hover {
    transform: translateY(-2px);
    opacity: .9;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .cab-wrapper {
        padding: 50px 20px;
    }

    .cab-section {
        padding: 30px;
    }

    .cab-grid,
    .cab-fields {
        grid-template-columns: 1fr;
    }

    .cab-full {
        grid-column: auto;
    }

    .cab-submit-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .cab-submit-button {
        width: 100%;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .cab-wrapper {
        padding: 35px 15px;
    }

    .cab-header {
        margin-bottom: 35px;
    }

    .cab-header h1 {
        font-size: 38px;
    }

    .cab-header p {
        font-size: 15px;
    }

    .cab-result {
        gap: 12px;
        padding: 20px;
    }

    .cab-result-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .cab-result strong {
        font-size: 15px;
    }

    .cab-result p {
        font-size: 13px;
    }

    .cab-section {
        margin-bottom: 25px;
        padding: 22px 18px;
        border-radius: 13px;
    }

    .cab-section-heading {
        gap: 12px;
        margin-bottom: 25px;
    }

    .cab-section-number {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 10px;
    }

    .cab-section-heading h2 {
        font-size: 22px;
    }

    .cab-upload-box {
        padding: 35px 18px;
    }

    .cab-file-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .cab-submit-section {
        padding: 30px 22px;
        border-radius: 13px;
    }

    .cab-submit-section h2 {
        font-size: 27px;
    }

}