/* Sophisticated References and Verification Styles */

/* References Manager Styles */
.sophisticated-references-manager {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.references-header {
    text-align: center;
    margin-bottom: 24px;
}

.references-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 8px;
}

.references-header p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.references-counter {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.reference-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.reference-card:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.reference-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #2d3748;
    margin: 0;
}

.remove-reference-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.remove-reference-btn:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

.reference-form {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 16px;
}

.form-col-6 {
    flex: 1;
}

.reference-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s ease;
}

.reference-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.relationship-selector {
    position: relative;
}

.relationship-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.relationship-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.custom-relationship-field {
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

.reference-status {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.incomplete {
    background: #fed7d7;
    color: #c53030;
}

.status-indicator.complete {
    background: #c6f6d5;
    color: #2f855a;
}

.add-reference-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: #4a5568;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-reference-btn:hover {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
}

.add-reference-btn i {
    font-size: 16px;
}

/* Verification Process Styles */
.sophisticated-verification-process {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.verification-header {
    text-align: center;
    margin-bottom: 32px;
}

.verification-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 8px;
}

.verification-header p {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.verification-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.verification-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.verification-step:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.authorization-section {
    margin-top: 32px;
}

.authorization-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.authorization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8941f, #d4af37);
}

.authorization-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.authorization-header i {
    font-size: 24px;
    color: #d4af37;
}

.authorization-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #2d3748;
    margin: 0;
}

.authorization-content p {
    color: #4a5568;
    margin-bottom: 16px;
    font-weight: 500;
}

.authorization-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.authorization-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.4;
}

.authorization-list i {
    color: #38a169;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

.privacy-note i {
    color: #38a169;
    font-size: 16px;
}

.privacy-note span {
    font-size: 13px;
    color: #2f855a;
    font-weight: 500;
}

.authorization-checkbox {
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark-custom {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    border-color: #d4af37;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
        flex-direction: column;
        gap: 16px;
    }
    
    .verification-steps {
        grid-template-columns: 1fr;
    }
    
    .verification-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        align-self: center;
    }
    
    .authorization-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Animation for smooth transitions */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Focus states for accessibility */
.reference-input:focus,
.relationship-select:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.checkbox-container:focus-within .checkmark-custom {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Validation states */
.reference-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.reference-input.success {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}
