/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* cormorant-garamond-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-300italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cormorant-garamond-500italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/cormorant-garamond-v21-latin_latin-ext-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ----- Form container ----- */
.wpcf7 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

.wpcf7-form .cp-form-row {
    margin-bottom: 22px;
}

/* ----- Labels ----- */
.wpcf7-form label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7A6E64; /* text-light */
    margin-bottom: 8px;
    line-height: 1.4;
}

.wpcf7-form .cp-optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 300;
    color: #A99B8E; /* text-muted */
    font-size: 11px;
}

/* ----- Text inputs & textarea ----- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #4A3F37; /* text */
    background: #FDFBF8; /* warm-white */
    border: 1px solid #E8DDD3; /* sand */
    border-radius: 3px;
    padding: 14px 16px;
    line-height: 1.6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form textarea::placeholder {
    color: #A99B8E; /* text-muted */
    opacity: 1;
    font-weight: 300;
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* ----- Focus state (terracotta) ----- */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #C4764E; /* terracotta */
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(196, 118, 78, 0.12);
}

/* ----- Privacy acceptance checkbox ----- */
.wpcf7-form .cp-form-privacy {
    margin-top: 4px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 13px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #7A6E64; /* text-light */
    line-height: 1.6;
    cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid #C4A68E; /* darker sand for visibility */
    border-radius: 3px;
    background: #FDFBF8;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked {
    background: #C4764E; /* terracotta */
    border-color: #C4764E;
}

/* Checkmark */
.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 118, 78, 0.18);
}

.wpcf7-form .cp-form-privacy a {
    color: #8B3A3A; /* burgundy */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.wpcf7-form .cp-form-privacy a:hover {
    color: #C4764E; /* terracotta */
}

/* ----- Submit button ----- */
.wpcf7-form .cp-form-submit {
    margin-top: 28px;
}

.wpcf7-form input[type="submit"] {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #2C2824; /* charcoal */
    border: none;
    border-radius: 3px;
    padding: 16px 40px;
    cursor: pointer;
    transition: background-color 0.35s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="submit"]:hover {
    background: #8B3A3A; /* burgundy */
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 58, 58, 0.22);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Disabled submit (until privacy accepted) — CF7 adds this state */
.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ----- AJAX spinner ----- */
.wpcf7-form .wpcf7-spinner {
    margin-left: 12px;
    background-color: #C4764E; /* terracotta dot */
}

/* ----- Validation & response messages ----- */
.wpcf7-form .wpcf7-not-valid-tip {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #8B3A3A; /* burgundy */
    margin-top: 6px;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #8B3A3A; /* burgundy */
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.10);
}

/* Response banner (success / error) at the bottom of the form */
.wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 18px;
    border-radius: 3px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

/* Success */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #C9A96E; /* gold */
    background: rgba(201, 169, 110, 0.10);
    color: #4A3F37; /* text */
}

/* Errors / validation / spam */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    border-color: #8B3A3A; /* burgundy */
    background: rgba(139, 58, 58, 0.07);
    color: #8B3A3A;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .wpcf7-form input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}