* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f5f7;

    color: #222;

}


.container {

    width: min(
        1000px,
        94%
    );

    margin:
        30px auto
        60px;

}


header {

    background: white;

    padding: 30px;

    border-radius: 16px;

    margin-bottom: 20px;

    text-align: center;

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.06);

}


header h1 {

    margin:
        0 0 8px;

}


header p {

    margin: 0;

    color: #666;

}


section {

    background: white;

    padding: 25px;

    margin-bottom: 20px;

    border-radius: 16px;

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.05);

}


section h2 {

    margin-top: 0;

    margin-bottom: 20px;

    font-size: 20px;

}


.grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

}


.field {

    margin-bottom: 18px;

}


.full {

    grid-column:
        1 / -1;

}


label {

    display: block;

    margin-bottom: 7px;

    font-weight: 600;

}


input,
select,
textarea {

    width: 100%;

    padding:
        12px 14px;

    border:
        1px solid #d3d7dc;

    border-radius: 9px;

    font-size: 15px;

    outline: none;

    background: white;

}


input:focus,
select:focus,
textarea:focus {

    border-color: #555;

}


textarea {

    resize: vertical;

}


.photo-area {

    text-align: center;

}


.photo-preview {

    width: 220px;

    height: 260px;

    margin:
        0 auto
        15px;

    border:
        2px dashed #ccc;

    border-radius: 12px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background: #fafafa;

    color: #888;

}


.photo-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.photo-button {

    display: inline-block;

    padding:
        12px 20px;

    background: #222;

    color: white;

    border-radius: 9px;

    cursor: pointer;

}


.remove-button {

    margin-left: 8px;

    padding:
        12px 20px;

    border: none;

    border-radius: 9px;

    background: #ddd;

    cursor: pointer;

}


.hidden {

    display: none;

}


.submit-button {

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 10px;

    background: #111;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

}


.submit-button:disabled {

    opacity: .6;

    cursor: not-allowed;

}


.message {

    margin-top: 15px;

    padding: 14px;

    border-radius: 9px;

    display: none;

}


.message.success {

    display: block;

    background: #e8f7e8;

    color: #176b17;

}


.message.error {

    display: block;

    background: #fdeaea;

    color: #a00000;

}


@media (
    max-width: 700px
) {

    .grid {

        grid-template-columns:
            1fr;

    }


    .full {

        grid-column:
            auto;

    }


    section {

        padding: 18px;

    }


    .container {

        width: 96%;

        margin-top: 12px;

    }

}