/*
|--------------------------------------------------------------------------
| GJW Content Writer — Application Form
|--------------------------------------------------------------------------
*/

.gjw-cw-application {
    width: 100%;
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: inherit;
}


/*
|--------------------------------------------------------------------------
| Application Card
|--------------------------------------------------------------------------
*/

.gjw-cw-application-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.06);
    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.gjw-cw-application-header {
    margin-bottom: 30px;
}

.gjw-cw-application-eyebrow {
    margin: 0 0 8px;
    color: #004d26;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gjw-cw-application-title {
    margin: 0 0 10px;
    color: #001f3f;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.gjw-cw-application-description {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.gjw-cw-application-form {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Field
|--------------------------------------------------------------------------
*/

.gjw-cw-application-field {
    margin-bottom: 22px;
}

.gjw-cw-application-field label {
    display: block;
    margin-bottom: 8px;
    color: #001f3f;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Required Marker
|--------------------------------------------------------------------------
*/

.gjw-cw-required {
    color: #dc2626;
    margin-left: 3px;
}


/*
|--------------------------------------------------------------------------
| Inputs
|--------------------------------------------------------------------------
*/

.gjw-cw-application-field input[type="text"],
.gjw-cw-application-field input[type="email"],
.gjw-cw-application-field input[type="tel"] {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    margin: 0;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    background: #ffffff;
    color: #001f3f;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/*
|--------------------------------------------------------------------------
| Placeholder
|--------------------------------------------------------------------------
*/

.gjw-cw-application-field input::placeholder {
    color: #94a3b8;
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Focus
|--------------------------------------------------------------------------
*/

.gjw-cw-application-field input[type="text"]:focus,
.gjw-cw-application-field input[type="email"]:focus,
.gjw-cw-application-field input[type="tel"]:focus {
    border-color: #004d26;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 77, 38, 0.10);
}


/*
|--------------------------------------------------------------------------
| Submit Area
|--------------------------------------------------------------------------
*/

.gjw-cw-application-actions {
    margin-top: 28px;
}


/*
|--------------------------------------------------------------------------
| Submit Button
|--------------------------------------------------------------------------
*/

.gjw-cw-application-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border: 0 !important;
    border-radius: 9px !important;
    background: #004d26 !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/*
|--------------------------------------------------------------------------
| Submit Hover
|--------------------------------------------------------------------------
*/

.gjw-cw-application-submit:hover {
    background: #003d1e !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 77, 38, 0.18) !important;
}


/*
|--------------------------------------------------------------------------
| Submit Focus
|--------------------------------------------------------------------------
*/

.gjw-cw-application-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 38, 0.15) !important;
}


/*
|--------------------------------------------------------------------------
| Supporting Text
|--------------------------------------------------------------------------
*/

.gjw-cw-application-note {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Success / Error Messages
|--------------------------------------------------------------------------
*/

.gjw-cw-application-message {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

.gjw-cw-application-message p {
    margin: 0;
}

.gjw-cw-application-message-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.gjw-cw-application-message-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}


/*
|--------------------------------------------------------------------------
| Login / Existing Account Message
|--------------------------------------------------------------------------
*/

.gjw-cw-application-login {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .gjw-cw-application {
        margin: 25px auto;
        padding: 0 15px;
    }

    .gjw-cw-application-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .gjw-cw-application-title {
        font-size: 25px;
    }

    .gjw-cw-application-description {
        font-size: 14px;
    }

    .gjw-cw-application-field {
        margin-bottom: 18px;
    }

    .gjw-cw-application-field input[type="text"],
    .gjw-cw-application-field input[type="email"],
    .gjw-cw-application-field input[type="tel"],
    .gjw-cw-application-field input[type="url"],
    .gjw-cw-application-field input[type="number"] {
        width: 100%;
        min-height: 50px;
        height: 50px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .gjw-cw-application-field textarea {
        width: 100%;
        min-height: 140px;
        font-size: 15px;
        line-height: 1.5;
        box-sizing: border-box;
        resize: vertical;
    }

    .gjw-cw-application-submit {
        width: 100%;
        min-height: 50px;
    }

}

.gjw-cw-application-field input[type="url"],
.gjw-cw-application-field input[type="number"],
.gjw-cw-application-field textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin: 0;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    background: #ffffff;
    color: #001f3f;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.gjw-cw-application-field textarea {
    min-height: 140px;
    resize: vertical;
}

.gjw-cw-application-field input[type="url"]:focus,
.gjw-cw-application-field input[type="number"]:focus,
.gjw-cw-application-field textarea:focus {
    border-color: #004d26;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 77, 38, 0.10);
}

.gjw-cw-optional {
    margin-left: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}