/* OVZA Notary Form CSS - Matching Unified Design */

/* === FORM WRAPPER === */
.ovza-notary-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === FORM HEADER === */
.ovza-notary-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.ovza-notary-form-header h2 {
    color: #148a64;
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
}

.ovza-notary-form-header p {
    color: #666;
    margin: 0 0 12px;
    font-size: 15px;
}

.ovza-notary-form-header .order-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #148a64;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* === ORDER SUMMARY BAR === */
.ovza-notary-summary-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.ovza-notary-summary-bar .summary-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.ovza-notary-summary-bar .summary-item .label {
    color: #666;
}

.ovza-notary-summary-bar .summary-item .value {
    font-weight: 600;
    color: #333;
}

/* === FORM SECTIONS === */
.ovza-notary-form-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.ovza-notary-form-section h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #148a64;
    padding-bottom: 10px;
}

.ovza-notary-form-section .section-desc {
    color: #666;
    font-size: 14px;
    margin: -10px 0 20px;
}

/* === FORM ROWS & GROUPS === */
.ovza-notary-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.ovza-notary-form-group {
    flex: 1;
}

.ovza-notary-form-group.full-width {
    flex: 100%;
}

/* === LABELS === */
.ovza-notary-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ovza-notary-form-group label .required {
    color: #d63031;
}

/* === INPUTS === */
.ovza-notary-form-group input[type="text"],
.ovza-notary-form-group input[type="email"],
.ovza-notary-form-group input[type="tel"],
.ovza-notary-form-group select,
.ovza-notary-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.ovza-notary-form-group input:focus,
.ovza-notary-form-group select:focus,
.ovza-notary-form-group textarea:focus {
    outline: none;
    border-color: #148a64;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

/* === PERSON CARDS === */
.ovza-notary-person-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.ovza-notary-person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ovza-notary-person-header .person-number {
    font-weight: 700;
    color: #148a64;
    font-size: 16px;
}

.ovza-notary-person-header .person-type {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.ovza-notary-person-header .person-type.bundle {
    background: #e8f5e9;
    color: #148a64;
}

.ovza-notary-person-header .person-type.general {
    background: #e8f5e9;
    color: #148a64;
}

/* === FORM ACTIONS === */
.ovza-notary-form-actions {
    text-align: center;
    margin-top: 30px;
}

.ovza-notary-submit-btn {
    background: #148a64;
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ovza-notary-submit-btn:hover:not(:disabled) {
    background: #0f6d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 138, 100, 0.3);
}

.ovza-notary-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === INTL TEL INPUT === */
.ovza-notary-form-wrapper .iti {
    width: 100%;
}

.ovza-notary-form-wrapper .iti input {
    width: 100%;
    padding-left: 80px !important;
}

/* === SELECT2 OVERRIDES === */
.ovza-notary-form-wrapper .select2-container--default .select2-selection--single,
.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple {
    height: auto !important;
    min-height: 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.ovza-notary-form-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
.ovza-notary-form-wrapper .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #148a64;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

.ovza-notary-form-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 22px;
    padding: 9px 35px 9px 12px;
    color: #333;
}

/* Hide Select2 default arrow completely to prevent double arrow */
.ovza-notary-form-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Custom dropdown arrow */
.ovza-notary-form-wrapper .select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 6px 8px;
    min-height: 40px;
}

.ovza-notary-form-wrapper .select2-container--open .select2-dropdown {
    border-color: #148a64;
}

/* Select2 Multi-select Pills */
.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    margin: 3px;
    color: #148a64;
    font-size: 13px;
}

.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0;
    padding-right: 4px;
}

.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #148a64;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 4px;
    margin-right: 0;
    padding: 0 4px;
    border: none !important;
    background: transparent !important;
}

.ovza-notary-form-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    background: #148a64 !important;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .ovza-notary-form-wrapper {
        padding: 15px;
    }
    
    .ovza-notary-form-row {
        flex-direction: column;
    }
    
    .ovza-notary-summary-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ovza-notary-form-section {
        padding: 20px;
    }
    
    .ovza-notary-submit-btn {
        width: 100%;
        padding: 16px 30px;
    }
}
