/* =========================================
   Tattoo Consent Form – form.css
   Inherits Phlox theme styles directly
   ========================================= */

/* Wrapper — no background, full left-align */
#tcf-wrap {
    max-width: 700px;
    margin: 0;
    padding: 0 0 60px;
    text-align: left;
}

#tcf-wrap * {
    box-sizing: border-box;
}

/* ---- HEADER ---- */
.tcf-header {
    margin-bottom: 40px;
}

.tcf-title {
    /* Uses h2 from theme: Raleway, 2.375em */
    margin: 0 0 4px;
    line-height: 1.2;
}

.tcf-studio-name {
    /* Uses theme body colour with reduced opacity */
    font-size: 0.82em;
    color: #AAA;
    margin: 0;
    letter-spacing: 0.04em;
}

/* ---- SECTIONS ---- */
.tcf-section {
    margin-bottom: 36px;
}

.tcf-section-title {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #AAA;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #DEDEDE;
}

/* ---- LEGAL BLOCK ---- */
.tcf-legal-block {
    border: 1px solid #EAEAEA;
    border-radius: 0;
    padding: 22px 24px;
    background: transparent;
}

.tcf-legal-block p {
    font-size: 0.88em;
    line-height: 1.75;
    margin: 0 0 14px;
    color: #444;
}

.tcf-legal-block p:last-child {
    margin-bottom: 0;
}

.tcf-legal-block a {
    color: #1bb0ce;
    text-decoration: none;
}

.tcf-legal-block a:hover {
    color: #1691aa;
}

.tcf-age-confirm {
    border-left: 3px solid #7c3aed;
    padding: 10px 16px !important;
    margin-top: 18px !important;
    background: rgba(124, 58, 237, 0.04);
}

/* ---- FIELDS ---- */
.tcf-field {
    margin-bottom: 20px;
}

/* Theme label style: display:block; margin-bottom:1em; font-size:1.1em; color:#3D3D3D */
.tcf-field label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 0.9em;
    font-weight: 600;
    color: #3D3D3D;
}

.tcf-req {
    color: #CA0000;
    margin-left: 2px;
}

/* Inherit theme input styles exactly */
.tcf-field input[type="text"],
.tcf-field input[type="tel"],
.tcf-field input[type="date"],
.tcf-field select {
    display: block;
    width: 100%;
    max-width: none;
    height: 46px;
    padding: 0.9375em 0.75em;
    border: solid 1px #bbb;
    background: transparent;
    color: #444;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 300ms;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.tcf-field input[type="text"]:focus,
.tcf-field input[type="tel"]:focus,
.tcf-field input[type="date"]:focus,
.tcf-field select:focus {
    outline: none;
    border-color: #3D3D3D;
}

.tcf-field input::placeholder {
    color: #C5C5C5;
    font-style: italic;
}

.tcf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.tcf-field select option {
    background: #fff;
    color: #444;
}

.tcf-field-row.tcf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- HEALTH QUESTIONS ---- */
.tcf-questions-note {
    font-size: 0.85em;
    color: #AAA;
    margin: 0 0 18px;
    font-style: italic;
}

.tcf-question {
    padding: 14px 0;
    border-bottom: 1px solid #EAEAEA;
}

.tcf-question:first-of-type {
    border-top: 1px solid #EAEAEA;
}

.tcf-question-label {
    font-size: 0.9em;
    line-height: 1.55;
    margin: 0 0 10px;
    color: #444;
}

.tcf-yn-group {
    display: flex;
    gap: 28px;
}

/* Theme radio: width:16px; height:16px; border:solid 1px #3D3D3D; border-radius:50%; */
.tcf-yn-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    color: #3D3D3D;
}

.tcf-yn-label input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: solid 1px #3D3D3D;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
    box-shadow: 0 0 0 2.5px white inset;
    cursor: pointer;
    transition: background-color 300ms;
    margin: 0;
    vertical-align: middle;
}

.tcf-yn-label input[type="radio"]:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.tcf-details-field {
    margin-top: 10px;
}

.tcf-details-field input {
    display: block;
    width: 100%;
    padding: 0.625em 0.75em;
    border: solid 1px #bbb;
    background: transparent;
    color: #444;
    font-size: 0.9em;
    font-family: inherit;
    transition: border-color 300ms;
}

.tcf-details-field input:focus {
    outline: none;
    border-color: #3D3D3D;
}

.tcf-details-field input::placeholder {
    color: #C5C5C5;
    font-style: italic;
}

/* ---- SIGNATURE ---- */
.tcf-sig-wrap {
    border: 1px solid #bbb;
    background: #fff;
    transition: border-color 300ms;
}

.tcf-sig-wrap.tcf-sig-active {
    border-color: #3D3D3D;
}

#tcf-signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    touch-action: none;
    background: #fff;
}

.tcf-sig-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #F3F3F3;
    border-top: 1px solid #EAEAEA;
}

.tcf-sig-hint {
    font-size: 0.8em;
    color: #AAA;
    font-style: italic;
}

/* ---- BUTTONS ---- */
/* Theme: background:transparent; border:solid 1px #bbb */
.tcf-btn-ghost {
    background: transparent;
    border: 1px solid #bbb;
    padding: 6px 16px;
    font-family: inherit;
    font-size: 0.8em;
    color: #888;
    cursor: pointer;
    transition: border-color 200ms, color 200ms;
}

.tcf-btn-ghost:hover {
    border-color: #3D3D3D;
    color: #3D3D3D;
}

/* Theme submit: background-color:#3D3D3D; color:white; padding:20px 35px; font-size:0.8125em; font-weight:700 */
.tcf-btn-primary {
    display: inline-block;
    background-color: #7c3aed;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: inherit;
    font-size: 0.8125em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 200ms;
}

.tcf-btn-primary:hover {
    background-color: #6d28d9;
}

.tcf-btn-primary:active {
    transform: scale(0.98);
}

.tcf-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---- MESSAGES ---- */
.tcf-msg {
    margin-bottom: 14px;
    padding: 12px 16px;
    font-size: 0.9em;
    border-left: 3px solid;
}

.tcf-msg-error {
    background: #fdf0f0;
    border-color: #CA0000;
    color: #CA0000;
}

.tcf-msg-success {
    background: #f0faf3;
    border-color: #2e7d44;
    color: #2e7d44;
}

.tcf-submit-wrap {
    margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 520px) {
    .tcf-field-row.tcf-two-col {
        grid-template-columns: 1fr;
    }
    .tcf-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ---- CONSENT CHECKBOX ---- */
.tcf-consent-check {
    margin: 28px 0 24px;
    padding: 16px 20px;
    border: 1px solid #EAEAEA;
    background: transparent;
}

.tcf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    color: #3D3D3D;
    margin: 0;
    line-height: 1.5;
}

/* Theme checkbox: width:16px; height:16px; border:solid 1px #3D3D3D */
.tcf-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    border: solid 1px #3D3D3D;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
    cursor: pointer;
    transition: background-color 300ms;
    flex-shrink: 0;
}

.tcf-check-label input[type="checkbox"]:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.tcf-check-label input[type="checkbox"]:focus {
    outline: none;
    border-color: #7c3aed;
}

.tcf-consent-check.tcf-check-error {
    border-color: #CA0000;
    background: #fdf0f0;
}
