/* Ezorxpdf - Contact page */

:root {
    --ct-heading: #33333b;
    --ct-text: #47474f;
    --ct-border: #707078;
    --ct-focus: #161616;
    --ct-red: #e5322d;
    --ct-red-dark: #c92a26;
}

.ct-page {
    background: #fff;
    padding: 64px 24px 80px;
}

.ct-box {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;           /* text starts at the top, next to the card */
}

/* Left side */
.ct-head {
    margin-top: 14px;             /* pushes the heading a little below the card's top edge */
}

.ct-title {
    font-size: 68px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--ct-heading);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.ct-text {
    font-size: 20px;
    line-height: 32px;
    color: var(--ct-text);
    max-width: 440px;
    margin: 0;
}

/* Card */
.ct-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-field { margin-bottom: 20px; }
.ct-field[hidden] { display: none; }

.ct-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ct-text);
    margin-bottom: 8px;
}

.ct-opt { font-weight: 400; color: #8e8e96; }

.ct-input,
.ct-select,
.ct-textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 15px;
    color: var(--ct-heading);
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 4px;
    padding: 0 14px;
    height: 44px;
    outline: none;
    transition: border-color .15s, background-color .15s;
}

.ct-textarea {
    height: auto;
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
}

.ct-input::placeholder,
.ct-textarea::placeholder { color: #9a9aa2; }

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
    border-color: var(--ct-focus);
    background-color: #f5f5fa;
}

.ct-card .ct-input:focus-visible,
.ct-card .ct-select:focus-visible,
.ct-card .ct-textarea:focus-visible {
    outline: none;                /* site-wide rule paints a blue outline; we use the dark border instead */
    border-radius: 4px;
    border-color: var(--ct-focus);
    background-color: #f5f5fa;
}

.ct-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%2333333b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.ct-select:invalid { color: #6b6b73; }

/* Word counter */
.ct-count {
    font-size: 12px;
    color: #8e8e96;
    text-align: right;
    margin: 6px 0 0;
}
.ct-count.is-full { color: var(--ct-red); font-weight: 600; }

/* Screenshot upload */
.ct-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    padding: 18px 12px;
    color: var(--ct-text);
    font-size: 14px;
    border: 1.5px dashed #b9b9c0;
    border-radius: 8px;
    background: #fafafb;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ct-drop svg { color: var(--ct-red); }
.ct-drop b { color: var(--ct-red); font-weight: 600; }
.ct-drop small { font-size: 12px; color: #8e8e96; }
.ct-drop:hover,
.ct-drop:focus-visible,
.ct-drop.is-over {
    border-color: var(--ct-red);
    background: #fff5f4;
    outline: none;
}

.ct-thumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.ct-thumbs:not(:empty) { margin-top: 12px; }
.ct-thumb {
    position: relative;
    width: 88px;
    height: 88px;
    border: 1px solid #e3e3e4;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f3f4;
}
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-thumb button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(51, 51, 59, .8);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}
.ct-thumb button:hover { background: var(--ct-red); }
.ct-file-err { color: var(--ct-red); font-size: 13px; margin: 8px 0 0; }
.ct-file-err[hidden] { display: none; }

/* Button */
.ct-btn {
    display: block;
    margin: 28px 0 0 auto;        /* right-aligned like the reference */
    min-width: 116px;
    height: 44px;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--ct-red);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.ct-btn:hover { background: var(--ct-red-dark); }
.ct-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Keyboard focus (replaces the site-wide blue outline on this page) */
.ct-page .ct-btn:focus-visible {
    outline: 2px solid var(--ct-focus);
    outline-offset: 2px;
    border-radius: 8px;
}
.ct-page .ct-drop:focus-visible {
    outline: none;
    border-radius: 8px;
}
.ct-page .ct-thumb button:focus-visible {
    outline: 2px solid var(--ct-focus);
    outline-offset: 1px;
    border-radius: 50%;
}

/* Messages */
.ct-msg {
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}
.ct-msg[hidden] { display: none; }
.ct-msg-ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.ct-msg-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* Tablet / mobile */
@media (max-width: 900px) {
    .ct-page { padding: 40px 16px 56px; }
    .ct-box { grid-template-columns: 1fr; gap: 28px; }
    .ct-head { margin-top: 0; }
    .ct-title { font-size: 48px; margin-bottom: 12px; }
    .ct-text { font-size: 17px; line-height: 1.6; max-width: none; }
}

@media (max-width: 520px) {
    .ct-title { font-size: 38px; }
    .ct-card { padding: 24px 18px; }
    .ct-row { grid-template-columns: 1fr; gap: 0; }
    .ct-btn { width: 100%; margin-left: 0; }
}
