/* Shared styles for the two Formspree lead forms
   (contact.html and startproject.html). Extracted from the
   byte-identical inline copies both pages used to carry. */

.contact-form-section {
    max-width: 700px;
    margin: 0 auto;
    background: #28272a;
    border: 1px solid #3a3739;
    border-radius: 20px;
    padding: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.org-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.topic-group {
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #ede7dc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #1f1e1c;
    border: 1px solid #3a3739;
    border-radius: 10px;
    color: #ede7dc;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input {
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9485' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #9aae93;
    outline-offset: 2px;
    border-color: #9aae93;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.contact-preference-group {
    margin-bottom: 0;
}

.dynamic-field-group {
    margin-bottom: 0;
}

.contact-preference-group select,
.dynamic-field-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1f1e1c;
    border: 1px solid #3a3739;
    border-radius: 10px;
    color: #ede7dc;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-preference-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9485' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.contact-preference-group select:focus,
.dynamic-field-group input:focus {
    outline: 2px solid #9aae93;
    outline-offset: 2px;
    border-color: #9aae93;
}

.contact-preference-group label,
.dynamic-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #ede7dc;
}

.dynamic-field {
    display: none;
}

.dynamic-field.active {
    display: block;
}

.form-success, .form-error {
    display: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-success {
    background: rgba(176, 194, 119, 0.1);
    border: 1px solid #b0c277;
    color: #b0c277;
}

.form-error {
    background: rgba(181, 77, 63, 0.1);
    /* #b54d3f failed AA contrast (~2.6:1) on the dark background */
    border: 1px solid #e0897a;
    color: #e0897a;
}

.form-error a {
    color: inherit;
    font-weight: 600;
}

.form-success.show, .form-error.show {
    display: block;
}

.btn-send {
    display: inline-block;
    padding: 14px 28px;
    background: #9aae93;
    color: #1f1e1c;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
    width: 100%;
    text-align: center;
}

.btn-send:hover {
    background: #9aae93;
    transform: none;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .org-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
