/* Open House Sign-In - Front-End Form Styles */

.ohsi-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
}

/* Header */
.ohsi-header {
    background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
    color: #fff;
    padding: 36px 40px 32px;
    text-align: center;
}

/* h2 title - small label above the name */
.ohsi-wrapper h2.ohsi-title,
.ohsi-wrapper .ohsi-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    opacity: 0.7 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    border: none !important;
    background: none !important;
}

/* h1 agent name - the dominant element, override any theme h1 styling */
.ohsi-wrapper h1.ohsi-agent,
.ohsi-wrapper .ohsi-agent {
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -0.8px !important;
    line-height: 1.1 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.ohsi-address {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px;
    opacity: 0.95;
}

.ohsi-date {
    font-size: 14px;
    opacity: 0.75;
    margin: 0;
}

/* Form */
.ohsi-form {
    padding: 36px 40px 32px;
}

.ohsi-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.ohsi-row .ohsi-field {
    flex: 1;
    margin-bottom: 0;
}

.ohsi-field {
    margin-bottom: 20px;
}

.ohsi-field-full {
    width: 100%;
}

.ohsi-field label,
.ohsi-checkbox-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ohsi-required {
    color: #ef4444;
}

.ohsi-field input[type="text"],
.ohsi-field input[type="email"],
.ohsi-field input[type="tel"],
.ohsi-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.ohsi-field input:focus,
.ohsi-field textarea:focus {
    outline: none;
    border-color: #2d6a9f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}

.ohsi-field textarea {
    resize: vertical;
    min-height: 88px;
}

/* Checkbox */
.ohsi-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.ohsi-checkbox-label:hover {
    border-color: #2d6a9f;
    background: #f0f7ff;
}

.ohsi-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ohsi-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ohsi-checkbox-label input:checked ~ .ohsi-checkbox-custom {
    background: #2d6a9f;
    border-color: #2d6a9f;
}

.ohsi-checkbox-label input:checked ~ .ohsi-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: 700;
}

/* Buttons */
.ohsi-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

.ohsi-btn-primary {
    background: linear-gradient(135deg, #1a3c5e, #2d6a9f);
    color: #fff;
    width: 100%;
    margin-top: 8px;
}

.ohsi-btn-primary:hover {
    background: linear-gradient(135deg, #142f4a, #235580);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,106,159,0.35);
}

.ohsi-btn-primary:active {
    transform: translateY(0);
}

.ohsi-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ohsi-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    margin-top: 16px;
}

.ohsi-btn-secondary:hover {
    background: #e5e7eb;
}

/* Error */
.ohsi-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Success */
.ohsi-success {
    padding: 48px 40px;
    text-align: center;
}

.ohsi-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ohsi-success h3 {
    font-size: 24px;
    color: #111827;
    margin: 0 0 8px;
}

.ohsi-success p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Credit link */
.ohsi-credit {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 12px 40px 16px;
    border-top: 1px solid #f3f4f6;
    margin: 0;
}

.ohsi-credit a {
    color: #9ca3af;
    text-decoration: none;
}

.ohsi-credit a:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 560px) {
    .ohsi-header,
    .ohsi-form,
    .ohsi-success {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ohsi-row {
        flex-direction: column;
        gap: 0;
    }

    .ohsi-title {
        font-size: 26px;
    }
}

/* Feedback textareas - slightly taller for better readability */
.ohsi-field textarea {
    min-height: 70px;
}
