/* TR FASTNET Address Search Frontend Styles */

.trf-address-search-container {
    max-width: 900px;
    margin: 30px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.trf-header {
    background: linear-gradient(135deg, #e74c3c 0%, #1a1a1a 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.trf-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.trf-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    font-weight: 300;
}

.trf-address-form {
    padding: 40px 30px;
}

.trf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .trf-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.trf-form-group {
    position: relative;
}

.trf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.trf-form-group .required {
    color: #e74c3c;
    font-weight: bold;
}

.trf-select {
    width: 100%;
    min-width: 280px;
    padding: 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.trf-select:hover {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.trf-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
}

.trf-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.trf-loading {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin-top: 12px;
}

.trf-loading::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #e74c3c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: trf-spin 0.8s linear infinite;
}

@keyframes trf-spin {
    to { transform: rotate(360deg); }
}

.trf-loading.active {
    display: block;
}

.trf-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

@media (max-width: 768px) {
    .trf-form-actions {
        flex-direction: column;
    }
}

.trf-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.trf-btn-primary {
    background: white;
    color: #1a1a1a;
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trf-btn-primary:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.trf-btn-primary:active {
    transform: translateY(0);
}

.trf-btn-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 2px solid #e74c3c;
}

.trf-btn-secondary:hover {
    background: #e74c3c;
    color: white;
}

.trf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Styles */
.trf-result-container {
    margin-top: 30px;
    padding: 0 30px 30px;
}

.trf-result-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-left: 5px solid #28a745;
    border-radius: 6px;
    padding: 25px;
    color: #155724;
}

.trf-result-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-left: 5px solid #dc3545;
    border-radius: 6px;
    padding: 25px;
    color: #721c24;
}

.trf-result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trf-result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .trf-result-content {
        grid-template-columns: 1fr;
    }
}

.trf-result-item {
    background: rgba(255,255,255,0.3);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid currentColor;
}

.trf-result-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.trf-result-item span {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* Loading Animation */
.trf-address-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .trf-address-search-container {
        margin: 20px 10px;
    }
    
    .trf-header {
        padding: 30px 20px;
    }
    
    .trf-header h2 {
        font-size: 24px;
    }
    
    .trf-address-form {
        padding: 20px;
    }
    
    .trf-form-row {
        margin-bottom: 15px;
    }
}
