:root {
    --cp-background: #0f1115;
    --cp-card: #181b20;
    --cp-card-dark: #14171c;
    --cp-border: #292d34;

    --cp-gold: #d4af37;
    --cp-gold-light: #f2c94c;
    --cp-gold-soft: rgba(212, 175, 55, 0.12);

    --cp-text: #f5f5f5;
    --cp-muted: #969ca6;

    --cp-green: #22c55e;
    --cp-red: #ef4444;

    --cp-info-title: #e4e6e9;
    --cp-info-note-text: #858b95;

    --cp-label: #bec2c8;
    --cp-field-bg: #111419;
    --cp-placeholder: #606671;

    --cp-form-note: #686e77;
    --cp-button-text: #111317;

    --cp-shadow: rgba(0, 0, 0, 0.35);
}


/* =========================
   LIGHT THEME
========================= */

html[data-theme="light"] {
    --cp-background: #fafafa;
    --cp-card: #ffffff;
    --cp-card-dark: #f5f6f7;
    --cp-border: #e0e3e7;

    --cp-gold: #d4af37;
    --cp-gold-light: #f2c94c;
    --cp-gold-soft: rgba(212, 175, 55, 0.12);

    --cp-text: #181a1f;
    --cp-muted: #6d737c;

    --cp-green: #22c55e;
    --cp-red: #ef4444;

    --cp-info-title: #34383f;
    --cp-info-note-text: #737a84;

    --cp-label: #555c66;
    --cp-field-bg: #f7f8f9;
    --cp-placeholder: #9aa0a8;

    --cp-form-note: #7d838c;
    --cp-button-text: #111317;

    --cp-shadow: rgba(0, 0, 0, 0.12);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 transparent;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #f2c94c 0%,
        #d4af37 50%,
        #b88914 100%
    );
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #f6d96a 0%,
        #d4af37 50%,
        #a97d10 100%
    );
}

::selection {
    background: #FAF5E7;
    color: #111317;
}

::-moz-selection {
    background: #FAF5E7;
    color: #111317;
}

* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: var(--cp-background);
    color: var(--cp-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
}


/* =========================
   MAIN
========================= */

.cp-main {
    min-height: calc(100vh - 70px);

    padding: 52px 0 80px;
}


.cp-container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;
}


/* =========================
   HEADING
========================= */

.cp-page-heading {
    margin-bottom: 28px;
}


.cp-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--cp-gold);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.cp-page-heading h1 {
    margin: 0;

    font-size: 34px;

    letter-spacing: -1.2px;
}


.cp-page-heading p {
    max-width: 650px;

    margin: 7px 0 0;

    color: var(--cp-muted);

    font-size: 13px;

    line-height: 1.7;
}


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

.cp-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 22px;

    align-items: start;
}


/* =========================
   CARDS
========================= */

.cp-info-card,
.cp-form-card {
    padding: 28px;

    border: 1px solid var(--cp-border);
    border-radius: 14px;

    background: var(--cp-card);
}


.cp-info-card h2,
.cp-form-card h2 {
    margin: 0;

    font-size: 21px;

    letter-spacing: -0.6px;
}


/* =========================
   INFO
========================= */

.cp-info-description,
.cp-form-description {
    margin: 8px 0 0;

    color: var(--cp-muted);

    font-size: 12px;

    line-height: 1.7;
}


.cp-info-list {
    display: flex;
    flex-direction: column;

    margin-top: 26px;
}


.cp-info-item {
    display: flex;

    gap: 13px;

    padding: 17px 0;

    border-top: 1px solid var(--cp-border);
}


.cp-info-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 50%;

    background: var(--cp-gold-soft);

    color: var(--cp-gold);

    font-size: 12px;
    font-weight: 800;
}


.cp-info-item > div:last-child {
    display: flex;
    flex-direction: column;
}


.cp-info-item strong {
    color: var(--cp-info-title);

    font-size: 12px;
}


.cp-info-item span {
    margin-top: 3px;

    color: var(--cp-muted);

    font-size: 10px;

    line-height: 1.6;
}


.cp-info-note {
    margin-top: 21px;

    padding: 15px;

    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 9px;

    background: rgba(212, 175, 55, 0.04);
}


.cp-info-note strong {
    color: var(--cp-gold);

    font-size: 10px;
}


.cp-info-note p {
    margin: 4px 0 0;

    color: var(--cp-info-note-text);

    font-size: 9px;

    line-height: 1.6;
}


/* =========================
   FORM
========================= */

.cp-form {
    display: flex;
    flex-direction: column;

    gap: 15px;

    margin-top: 24px;
}


.cp-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


.cp-form-group {
    display: flex;
    flex-direction: column;
}


.cp-form-group label {
    margin-bottom: 7px;

    color: var(--cp-label);

    font-size: 10px;
    font-weight: 650;
}


.cp-form-group input,
.cp-form-group select,
.cp-form-group textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid var(--cp-border);
    border-radius: 8px;

    outline: none;

    background: var(--cp-field-bg);

    color: var(--cp-text);

    font-family: inherit;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.cp-form-group input,
.cp-form-group select {
    height: 44px;
}


.cp-form-group textarea {
    min-height: 155px;

    resize: vertical;

    line-height: 1.65;
}


.cp-form-group input::placeholder,
.cp-form-group textarea::placeholder {
    color: var(--cp-placeholder);
}


.cp-form-group input:focus,
.cp-form-group select:focus,
.cp-form-group textarea:focus {
    border-color: rgba(212, 175, 55, 0.60);

    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.05);
}


/* =========================
   FORM BOTTOM
========================= */

.cp-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-top: 2px;
}


.cp-form-bottom small {
    max-width: 390px;

    color: var(--cp-form-note);

    font-size: 9px;

    line-height: 1.5;
}


.cp-form-bottom button {
    flex-shrink: 0;

    padding: 11px 20px;

    border: 0;
    border-radius: 8px;

    background: var(--cp-gold);

    color: var(--cp-button-text);

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;

    transition: 0.2s;
}


.cp-form-bottom button:hover {
    background: var(--cp-gold-light);
}


/* =========================
   FLASH MESSAGE
========================= */

.cp-flash-wrapper {
    position: fixed;

    top: 20px;
    left: 50%;

    z-index: 9999;

    transform: translateX(-50%);
}


.cp-flash {
    min-width: 280px;

    padding: 13px 20px;

    border: 1px solid var(--cp-gold);
    border-radius: 8px;

    background: var(--cp-card);

    color: var(--cp-text);

    box-shadow: 0 8px 30px var(--cp-shadow);

    font-size: 12px;
    font-weight: 650;

    text-align: center;
}


.cp-flash-error {
    border-color: rgba(239, 68, 68, 0.65);
}


.cp-flash-success {
    border-color: rgba(34, 197, 94, 0.65);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .cp-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .cp-main {
        padding: 34px 0 55px;
    }


    .cp-container {
        width: calc(100% - 24px);
    }


    .cp-page-heading h1 {
        font-size: 28px;
    }


    .cp-info-card,
    .cp-form-card {
        padding: 21px 17px;

        border-radius: 12px;
    }


    .cp-form-row {
        grid-template-columns: 1fr;
    }


    .cp-form-bottom {
        align-items: stretch;
        flex-direction: column;
    }


    .cp-form-bottom button {
        width: 100%;
    }


    .cp-flash-wrapper {
        width: calc(100% - 24px);
    }


    .cp-flash {
        width: 100%;
        min-width: 0;
    }

}